Jump to content
Sign in to follow this  
Guest tompeel

Structure of .hgt files and FSDEM

Recommended Posts

Guest tompeel

I've been using FSDEM with some success to generate mesh scenery files starting with .hgt files downloaded from ftp://e0srp01u.ecs.nasa.gov/srtm/version2/SRTM3. One thing which is mystifying me is how DSDEM "knows" the Lat/Lon coordinates of a given .hgt file. I have looked at the contents of one of these files using a hex editor, and it appears to contain the metre altitudes, one value per two bytes, in a simple grid format. Where is the info about the Lat/Lon coordinates kept?Thanks

Share this post


Link to post
Share on other sites

Not sure, but I imagine it simply uses the file name to locate the SW corner and assumes it is 3 sec resolution data so 1200x1200 data points.scott s..

Share this post


Link to post
Share on other sites
Guest tompeel

Hi Scott I just played around some more and found that it does indeed deduce the coordinates from the file name. I'm not sure how it distinguishes SRTM-1 and SRTM-3 though.T.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...