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

SfincsGrid

__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()

Read the manning roughness map from its own binary file.

test_equal(other)

Test if two components are equal.

write()

Write the manning roughness map to its own binary file.

Attributes

data

Return only the available roughness layers from the model grid.

data_catalog

Return the data catalog of the model this component is associated with.

grid_variables

mask

Get an empty mask with the same shape as the model grid.

model

Return the model object this component is associated with.

name_in_model

Find the name of the component in the parent model components.

root

Return the root of the model this component is associated with.