BigInch
Petroleum
- Jun 21, 2006
- 15,161
Sorry to bother you guys, but I know nothing about bin files. I've been trying for 3 days to extract elevation data from a SRTM3.hgt file, but can't make any sense of the values I'm getting.
The only description of the data file format I can find is,
"The is provided as two byte 16-bit signed integer data in a simple binary raster. There are no header or trailer bytes embedded in the file. The data is stored in row major order with 1201 rows, of 1201 values. Byte order is big-endian standard with the most significant byte first. Since they are signed integers elevations can range from -32767 to 32767 meters, encompassing the range of elevation to be found on the Earth."
I have a typical file located here (700kb),
I would really like to know how to extract the elevations from that file using VB6. Greatly appreciate any how-to advice. A canned sub I could drop in would be worth its weight in gold. Thanks.
BigInch
-born in the trenches.
The only description of the data file format I can find is,
"The is provided as two byte 16-bit signed integer data in a simple binary raster. There are no header or trailer bytes embedded in the file. The data is stored in row major order with 1201 rows, of 1201 values. Byte order is big-endian standard with the most significant byte first. Since they are signed integers elevations can range from -32767 to 32767 meters, encompassing the range of elevation to be found on the Earth."
I have a typical file located here (700kb),
I would really like to know how to extract the elevations from that file using VB6. Greatly appreciate any how-to advice. A canned sub I could drop in would be worth its weight in gold. Thanks.
BigInch
![[worm] [worm] [worm]](/data/assets/smilies/worm.gif)