How to specify BLOCKSIZE in to_raster()
?
#656
Answered
by
snowman2
rsignell-usgs
asked this question in
Q&A
-
I have an xarray dataarray, and I can write to COG using rioxarray using the default 512x512, but then I tried to specify the blocks to be 1024 instead of 512. I thought this would just be:
but it just seems to ignore it and generates 512x512 again, so what did I do wrong? The full notebook is here (which is supposed to demonstrate how to work with big geotiff using Dask): |
Beta Was this translation helpful? Give feedback.
Answered by
snowman2
Mar 20, 2023
Replies: 1 comment 1 reply
-
da.rio.to_raster(raster_path=cog, driver="COG", blocksize=1024) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rsignell-usgs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://corteva.github.io/rioxarray/stable/rioxarray.html#rioxarray.raster_array.RasterArray.to_raster
profile_kwargs
are keyword arguments. So, you would input them like so: