hydromt.Model.set_root#
- Model.set_root(root: Optional[str], mode: Optional[str] = 'w')[source]#
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