Skip to content

sel() using a Coordinate and not a Dimension #9672

Closed Answered by keewis
DeSanz asked this question in Q&A
Discussion options

You must be logged in to vote

isel only works on dimensions (anything in ds.dims), and is used for position-based indexing.

If you truly want label-based indexing (it looks like you created an index for field_n), I think you'll have to use .sel (i.e. maybe this is a typo?).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DeSanz
Comment options

@DeSanz
Comment options

Answer selected by DeSanz
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