Skip to content

Incorrect slicing #6018

Answered by keewis
krishnaap asked this question in Q&A
Nov 23, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

what is the ordering of your data? Unfortunately, if your data is descending instead of ascending you'll have to change your slice objects:

ds.sel(longitude=slice(50, 100), latitude=slice(18, 0))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@krishnaap
Comment options

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