hydromt_sfincs.SfincsModel.set_root#

SfincsModel.set_root(root: str | None, mode: str | None = 'w')#

Initialize the model root.

In read/append mode a check is done if the root exists. In write mode the required model folder structure is created.

Parameters:
  • root (str, optional) – path to model root

  • mode ({"r", "r+", "w"}, optional) – read/append/write mode for model files