Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix real world cell size #2

Open
dodie opened this issue Oct 10, 2021 · 0 comments
Open

Fix real world cell size #2

dodie opened this issue Oct 10, 2021 · 0 comments
Labels
hacktoberfest help wanted Extra attention is needed

Comments

@dodie
Copy link
Owner

dodie commented Oct 10, 2021

The application reads HGT data. Each HGT file contains elevation data for a one degree latitude by one degree longitude tile in high resolution (E.g. N44E016).

This region is divided into 3600 rows and 3600 columns, each cell encoding the height data for a given location.

The real-world size of such cell depends on its latitude and longitude.

  • Degrees of latitude are parallel, so the distance between each degree is mostly constant, 1 degree ~= 111km, so the height of each pixel is roughly 30.8 m.
  • Longitude varies based on the actual location. It is also ~= 111km at the equator, but shrinks to 0 as it reaches the poles.

However, currently the application uses 30*30m for the size of all cells for simplification, which causes northern regions to be bigger than they are.

Fix this distortion with a better approximation.

Additional resources:

@dodie dodie changed the title Fix real world pixel size Fix real world cell size Oct 10, 2021
@dodie dodie added hacktoberfest help wanted Extra attention is needed labels Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant