How to open a dataset to a wanted resolution #300
-
Hello, What I want is to copy the behavior of Can you help me ? :) Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
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 rds = rioxarray.open_rasterio(...)
rds = rds.rio.reproject(rds.rio.crs, shape=(height, width)) |
Beta Was this translation helpful? Give feedback.
-
Just to add something here, it seems that the rasterio's way and the rioxarray's way have some discrepancy. For example, in CI I load L8 data with a very low resolution of 1000 meters and I get different values:
This is also the case for S2, S2-theia and all landsat satellites. |
Beta Was this translation helpful? Give feedback.
-
Hi @remi-braun , @snowman2
This opens the downscaled version of a 2.5Gb (42k x 36k) DEM in less than 1 sec compared to 35s by using
Wondering if it would be possible to create a PR, but the problem is that the |
Beta Was this translation helpful? Give feedback.
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