hydromt_sfincs.utils.write_binary_map_index#

hydromt_sfincs.utils.write_binary_map_index(fn_ind: str | Path, msk: ndarray) None[source]#

Write flat index of binary map file.

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

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

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