Skip to content

is there a neat way to reduce entire dataset dimension size x and y without changing datatype for variables? #6465

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

You must be logged in to vote

this really depends on what value you want to drop, but you could use isel with the appropriate slice, e.g. to drop the last element:

cube.isel(x=slice(None, -1), y=slice(None, -1))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oswald1234
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