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
Query grid object? #239
Comments
This functionality is available but currently not part of the public API. |
Excellent! Thank you. 🙏 I would also like to be able to ask generally for information from the grid, like asking grid for the name of the coordinate given the position name and axis, but not associated with a particular array (what the second question above is after). Does that happen to be accessible? |
|
Thank you so much, I was able to get it to work with |
Any time! Very excited that you are using xgcm for your projects. |
Sorry if I have missed this, but is it possible to query an existing xgcm grid object for information? Something like
grid.get_coords(array, axes)
such thatgrid.get_coords(ds.temp, 'X')
would return 'center' (name of position). It would then also be useful to be able to generally query the position and return the name of the coord:grid.get_coord_from_position('center')
would return 'xi_rho' (name of coordinate associated with that position and axis).The text was updated successfully, but these errors were encountered: