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 projection units #1233

Merged
merged 6 commits into from
Sep 19, 2023
Merged

Conversation

tdrwenski
Copy link
Contributor

Description of Changes

Some NCSS requests are failing for satellite data (geostationary projection) when the x/y axes have units micro radians. This PR fixes this by moving the unit handling out of the projection class, into the HorizCoordSys class that is used by coverages. This PR contains:

  • Add test
  • Generalize unit handling in HorizCoordSys using the SimpleUnits to work for more than just km/m, given that a projection specifies its default unit.
  • Remove/deprecate code in Geostationary related to unit handling.
  • Add default unit to Geostationary and LambertConformal classes.

@tdrwenski
Copy link
Contributor Author

@tdrwenski tdrwenski marked this pull request as ready for review September 18, 2023 15:10
@haileyajohnson haileyajohnson merged commit 8935ad7 into Unidata:maint-5.x Sep 19, 2023
9 checks passed
@tdrwenski tdrwenski deleted the fix-projection-units branch September 19, 2023 20:26
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