Re: Creating 12GB Create very large empty geotif with Rasterio without using large amounts of memory


Alan Snow
 
Edited

Reading & writing with windows can be done with rioxarray (rasterio + xarray):

import rioxarray

rds = rioxarray.open_rasterio("input.tif", lock=False)
rds.rio.to_raster("output.tif", windowed=True)

You can also use dask to read/write in parallel:

Hope this helps,
Alan

Join main@rasterio.groups.io to automatically receive all group messages.