Incorrect slicing
#6018
-
Slicing shows incorrect dimensions It is supposed to slice the lat and lon values between 0-18 and 50-100 respectively, But I m getting the following result
How to resolve this issue? |
Beta Was this translation helpful? Give feedback.
Answered by
keewis
Nov 23, 2021
Replies: 1 comment 1 reply
-
what is the ordering of your data? Unfortunately, if your data is descending instead of ascending you'll have to change your ds.sel(longitude=slice(50, 100), latitude=slice(18, 0)) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
krishnaap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is the ordering of your data? Unfortunately, if your data is descending instead of ascending you'll have to change your
slice
objects: