hydromt_sfincs.components.grid.SfincsRoughness#
- class hydromt_sfincs.components.grid.SfincsRoughness(model: SfincsModel)[source]#
SFINCS Roughness Component.
This component contains methods to add roughness data to the SFINCS model on regular grids. Roughness data can be derived from various sources, including land use/land cover maps, or gridded datasets of Manning’s n values. Multiple roughness datasets can be merged together to create a complete roughness representation interpolated onto the model grid.
Note
The roughness data is stored in the model grid’s data dataset under the key “manning”.
See also
- __init__(model: SfincsModel)[source]#
Methods
__init__(model)close()Clean up all open datasets.
create([roughness_list, manning_land, ...])Setup model manning roughness map (manningfile) from gridded manning data or a combinataion of gridded land-use/land-cover map and manning roughness mapping table.
finish_write()Finish the write functionality after cleanup was called for all components in the model.
read()Not implemented, roughness data is read when the grid is read.
test_equal(other)Test if two components are equal.
write()Not implemented, roughness data is written when the grid is written.
Attributes
dataGet the data from the model grid.
data_catalogReturn the data catalog of the model this component is associated with.
maskGet an empty mask with the same shape as the model grid.
modelReturn the model object this component is associated with.
name_in_modelFind the name of the component in the parent model components.
rootReturn the root of the model this component is associated with.