rioxarray
rioxarray copied to clipboard
Allow rio.to_raster with a BytesIO object
Please consider adding support for in-memory rasterizing, rasterio supports this with MemoryFile, which could be written to a BytesIO object for easier cross-compatibility.
Related: https://github.com/corteva/rioxarray/discussions/204
This works, as recommended in the planetary computer documentation.
with io.BytesIO() as buffer:
d.rio.to_raster(buffer, driver="COG")
buffer.seek(0)
Related #309