Depending on format, datasets that have been written need to be closed before they are complete, so this is safer. A future version of rasterio will require that datasets passed to WarpedVRT be opened in read-only mode. Also, using numpy.moveaxis so that we only call mraster.write once.
Depending on format, datasets that have been written need to be closed before they are complete, so this is safer. A future version of rasterio will require that datasets passed to WarpedVRT be opened in read-only mode. Also, using numpy.moveaxis so that we only call mraster.write once.