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 the UTM_ZONE confusion #1053

Merged
merged 1 commit into from
Aug 3, 2023
Merged

fix the UTM_ZONE confusion #1053

merged 1 commit into from
Aug 3, 2023

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
src/mintpy/utils/utils0.py Show resolved Hide resolved
src/mintpy/utils/utils0.py Show resolved Hide resolved
@yunjunz yunjunz merged commit 6cd22a7 into insarlab:main Aug 3, 2023
4 checks passed
@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