raster_tools.empty_like
raster_tools.empty_like#
- raster_tools.empty_like(raster_template, bands=1, dtype=None)[source]#
Create a Raster filled with uninitialized data like a template raster.
- Parameters
raster_template (Raster, str) – Template raster used to define rows, columns, crs, resolution, etc
bands (int, optional) – Number of bands desired for output. Default is 1.
dtype (data-type, optional) – Overrides the result dtype.
- Returns
The resulting raster of uninitialized data.
- Return type