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

[Enhancement]: Improve error message when mapping to multiple axes based on CF attributes #610

Open
tomvothecoder opened this issue Feb 21, 2024 · 0 comments

Comments

@tomvothecoder
Copy link
Collaborator

tomvothecoder commented Feb 21, 2024

Is your feature request related to a problem?

We use cf-xarray to interpret CF metadata in a dataset. cf-xarray can interpret different CF metadata to map to axes. For example, the Z axis can be mapped to either by axis, standard_name, long_name, positive, etc (link).

There might be cases where a dataset sets a CF attribute on an incorrect variable/coordinate. For example, in this discussion, the dataset has plev7 and tau being mapped to the Z axis. cf-xarray maps the positive attribute set on tau to the Z axis (which is probably not correct).

Describe the solution you'd like

Improve the error message and link to cf-xarray mapping tables.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant