raster_tools.Raster.save#

Raster.save(path, no_data_value=None, **gdal_kwargs)[source]#

Compute the final raster and save it to the provided location.

Parameters
  • path (str) – The target location to save the raster to.

  • no_data_value (scalar, optional) – A new null value to use when saving.

  • **gdal_kwargs (kwargs, optional) – Additional keyword arguments to to pass to rasterio and GDAL when writing the raster data.

Returns

A raster pointing to the saved location.

Return type

Raster