Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yunjunz
Copy link
Member

@yunjunz yunjunz commented Aug 2, 2023

Description of proposed changes

This PR fixes the previous confusion that UTM_ZONE should end with the hemisphere, not the latitude band, which is not part of UTM but part of MGRS, as described in #1052 (comment).

  • utils.utils0.utm_zone2epsg_code(): revert back the south arg feeding from UTM_ZONE

  • utils.utils0.utm2latlon(): use the northern arg instead of the latitude band, to match the meaning of UTM_ZONE metadata

  • utils.utils0.latlon2utm(): return east/north only, for simplicity and style consistency with utm2latlon.

  • docs/api/attributes.UTM_ZONE: add more description and examples

Reminders

  • Pass Pre-commit check (green)
  • Pass Codacy code review (green)
  • Pass Circle CI test (green)
  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.

Fix the previous confusion that UTM_ZONE should end with the hemisphere, not the latitude band, which is not part of UTM but part of MGRS.

+ utils.utils0.utm_zone2epsg_code(): revert back the south arg feeding from UTM_ZONE

+ utils.utils0.utm2latlon(): use the `northern` arg instead of the latitude band, to match the meaning of UTM_ZONE metadata

+ utils.utils0.latlon2utm(): return east/north only, for simplicity and style consistency with utm2latlon.

+ docs/api/attributes.UTM_ZONE: add more description and examples
@yunjunz yunjunz requested a review from scottstanie August 2, 2023 16:54
@yunjunz yunjunz merged commit 6cd22a7 into insarlab:main Aug 3, 2023
@yunjunz yunjunz deleted the utm_zone branch August 3, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants