-
Beta Was this translation helpful? Give feedback.
Answered by
snowman2
Aug 5, 2022
Replies: 1 comment 11 replies
-
Have you tried this? transformer = Transformer.from_crs("EPSG:4326", data.rio.crs, always_xy=True)
data.rio.clip_box(*transformer.transform_bounds(140, -90, 220, -65)) |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
snowman2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried this?
https://pyproj4.github.io/pyproj/stable/api/transformer.html#pyproj.transformer.Transformer.transform_bounds