hydromt_wflow.WflowModel.write_states#

WflowModel.write_states(filename: str | Path | None = None)[source]#

Write states at <root/dir_input/state.path_input> in model ready format.

Checks the path of the file in the config toml using both state.path_input and dir_input. If not found uses the default path instate/instates.nc in the root folder. If filename is provided, it will be used and config state.path_input will be updated accordingly.

Parameters:

filename (str, Path, optional) – Name of the states file, relative to model root and dir_input if any. By default None to use the name as defined in the model config file.