how to read NASA .hgt binary files

后端 未结 6 963
你的背包
你的背包 2020-12-07 19:26

I\'m sure this is really simple if you know anything about binary files, but I\'m a newbie on that score.

How would I extract the data from NASA .hgt files? Here is

6条回答
  •  情书的邮戳
    2020-12-07 19:54

    The NASA SRTM data files are in Big-Endian format, so depending on what platform you are reading the data on, you may have to do a conversion from Big-Endian to Little-Endian.

    There are numerous sources on how to do this, I have no experience with Python so I can't help you there.

    But if you forget this, your values are going to be all messed up.

提交回复
热议问题