Skip to content

Add an FAQ entry on coordinates dropped by .cf selection - #694

Open
ZackaryLoevseth wants to merge 1 commit into
xarray-contrib:mainfrom
ZackaryLoevseth:docs/faq-cf-coordinates
Open

ZackaryLoevseth wants to merge 1 commit into
xarray-contrib:mainfrom
ZackaryLoevseth:docs/faq-cf-coordinates

Conversation

@ZackaryLoevseth

Copy link
Copy Markdown

Closes #357, which was reopened to document this.

Adds an FAQ entry on why ds.cf["standard_name"] can lack an auxiliary coordinate that ds["name"] has: xarray attaches coordinates by their dimensions, while cf-xarray uses the variable's coordinates attribute. A short example shows the missing coordinate and the fix, and the entry notes that the attribute may be in .encoding after decoding and should list only the coordinates that describe the variable.

The example runs as written and gives the commented results. Docs only.

This branch has not been deployed

No deployments
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.

Different recognized coordinates when calling variable by standard name

1 participant