Meters Translation Correction and Pixel to Meters Calculations#43
Merged
kperrynrel merged 2 commits intoAug 18, 2025
Merged
Conversation
Contributor
|
This looks great @qnguyen345 ! As a last request, can you check if any of our jupyter notebooks use the associated updated functions and run them if so, just so our documentation is up-to-date? |
Collaborator
Author
|
@kperry2215 There were two that used the updated functions, Austin_hail_damage_example and Sol-Searcher_example. They have been updated in the new commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the original code, the generated lat,lon shapely polygons did not align properly with the satellite image. This is checked when I converted these lat,lon polygons to kml and imported those kml onto Google Earth and vertified that the polygons were misaligned for the same satellite image scan (as shown in the first image below).
The new code accounts for the correct meter translation by using pyproj projection. Also, instead of having an approximate meter per pixel conversion, calculate its value from a meter per pixel formula. The formula is located here for reference: https://gis.stackexchange.com/questions/7430/what-ratio-scales-do-google-maps-zoom-levels-correspond-to
The first image is the lat,lon polygons generated from the original code and the second is from the updated code.

