-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add convenience coordinate methods to NDCube #709
base: main
Are you sure you want to change the base?
Conversation
I have many thoughts on this. |
I knew you would :) I look forward to them. |
Yes that's a starter. |
Well if we can agree the API, at least for |
Hello 👋, Thanks for your contribution to ndcube! |
PR Description
This PR adds 4 methods for getting the certain common coordinate types for all array indices of relevant axes:
NDCube.celestial
NDCube.time
NDCube.spectral
NDCube.stokes
These are convenience methods for
NDCube.axis_world_coords
. If the WCS does not contain the relevant axis,None
is returned.