Skip to content

Why aren't lon and lat being recognized as coordinates? #352

Answered by dcherian
kthyng asked this question in Q&A
Discussion options

You must be logged in to vote

I think we require "coordinates" to be in .coords It'd be nice to update the docs to be clear on this.
This seems too work

ds = xr.open_dataset(loc).cf.set_coords(["latitude", "longitude"])
ds.cf

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@kthyng
Comment options

kthyng Jul 21, 2022
Maintainer Author

@dcherian
Comment options

@dcherian
Comment options

@kthyng
Comment options

kthyng Jul 21, 2022
Maintainer Author

@dcherian
Comment options

Answer selected by dcherian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants