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

Support arbitrary antimeridian location #132

Open
philipc2 opened this issue Aug 23, 2024 · 1 comment
Open

Support arbitrary antimeridian location #132

philipc2 opened this issue Aug 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@philipc2
Copy link

philipc2 commented Aug 23, 2024

Occasionally, the range of my longitude values may be in the range of [0, 360] instead of [-180, 180]. I'm wondering if it would be useful to allow for a user-defined antimeridian location.

Right now for uxarray we are restricted to having our longitude in the [-180, 180] range due to this.

@gadomski
Copy link
Owner

Occasionally, the range of my longitude values may be in the range of [0, 360] instead of [-180, 180]. I'm wondering if it would be useful to allow for a user-defined antimeridian location.

Maybe, but my guess it that it would take a non-trivial refactor. [0, 360] should work on input because of this, if it doesn't that's a bug:

coords[i] = (((point[0] + 180) % 360) - 180, point[1])

To get [0, 360] on output it would just be a matter of applying the inverse operation on the output.

@gadomski gadomski added the enhancement New feature or request label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants