Skip to content

clippig netcdf using rioxarray #555

Answered by snowman2
gkb999 asked this question in Q&A
Aug 5, 2022 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

Have you tried this?

https://pyproj4.github.io/pyproj/stable/api/transformer.html#pyproj.transformer.Transformer.transform_bounds

transformer = Transformer.from_crs("EPSG:4326", data.rio.crs, always_xy=True)
data.rio.clip_box(*transformer.transform_bounds(140, -90, 220, -65))

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@gkb999
Comment options

@snowman2
Comment options

@gkb999
Comment options

@snowman2
Comment options

@gkb999
Comment options

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