Skip to content

How to open a dataset to a wanted resolution #300

Answered by snowman2
remi-braun asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, decimated reads aren't supported currently. But, I wouldn't turn down a PR with the new feature 😄

Resampling after loading data is currently the only was using rioxarray directly:
https://corteva.github.io/rioxarray/stable/rioxarray.html#rioxarray.raster_array.RasterArray.reproject

rds = rioxarray.open_rasterio(...)
rds = rds.rio.reproject(rds.rio.crs, shape=(height, width))

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@remi-braun
Comment options

@snowman2
Comment options

@remi-braun
Comment options

@snowman2
Comment options

Answer selected by snowman2
Comment options

You must be logged in to vote
2 replies
@snowman2
Comment options

@remi-braun
Comment options

Comment options

You must be logged in to vote
5 replies
@snowman2
Comment options

@snowman2
Comment options

@remi-braun
Comment options

@Kirill888
Comment options

@snowman2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants