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 data

  • raster_path (str) – Path to output map

  • nodata (int, float) – no data value

  • transform (affine transform) – Two dimensional affine transform for 2D linear mapping

  • clone_path (str, optional) – Path to PCRaster clone map, by default None

  • pcr_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: