hydromt.gis_utils.write_map#
- hydromt.gis_utils.write_map(data, raster_path, nodata, transform, crs=None, clone_path=None, pcr_vs='scalar', **kwargs)[source]#
Write pcraster map files using pcr.report functionality.
A PCRaster clone map is written to a temporary directory if not provided. For PCRaster types see https://www.gdal.org/frmt_various.html#PCRaster
- Parameters:
data (
ndarray
) – Raster dataraster_path (
str
) – Path to output maptransform (
affine transform
) – Two dimensional affine transform for 2D linear mappingclone_path (
str
, optional) – Path to PCRaster clone map, by default Nonepcr_vs (
str
, optional) – pcraster type, by default “scalar”**kwargs – not used in this function, mainly here for compatability reasons.
crs – The coordinate reference system of the data.
- Raises:
ImportError – pcraster package is required
ValueError – if invalid ldd