hydromt_sfincs.utils.write_binary_map#

hydromt_sfincs.utils.write_binary_map(fn: str | Path, data: ndarray, msk: ndarray, dtype: str | dtype = 'f4') None[source]#

Write binary map file.

NOTE: The array should be in S->N and W->E orientation, with origin in the SW corner.

Parameters:
  • str (fn) – Path to output map index file.

  • Path – Path to output map index file.

  • data (np.ndarray) – 2D array of sfincs map.

  • msk (np.ndarray) – 2D array of sfincs mask map, where invalid cells have value 0.

  • dtype (str, np.dtype, optional) – Data type, by default “f4”. For sfincs.msk file use dtype=”u1”.