hydromt_sfincs.components.grid.SfincsElevation#

class hydromt_sfincs.components.grid.SfincsElevation(model: SfincsModel)[source]#

SFINCS Elevation Component.

This component contains methods to add elevation (bed level) data to the SFINCS model on regular grids. Multiple elevation datasets can be merged together to create a complete bed level representation interpolated onto the model grid.

Note

Elevation is stored as dep in the model grid. data exposes only this layer. The grid reads and writes it through depfile, together with the mask and cell index.

See also

SfincsGrid

__init__(model: SfincsModel)[source]#

Methods

__init__(model)

close()

Clean up all open datasets.

create(elevation_list[, buffer_cells, ...])

Interpolate topobathy (dep) data to the model grid.

finish_write()

Finish the write functionality after cleanup was called for all components in the model.

read()

Ensure the grid is loaded; it reads elevation from depfile.

test_equal(other)

Test if two components are equal.

write()

Leave elevation persistence to model.grid.write().

Attributes

data

Return only the available elevation layer from the model grid.

data_catalog

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

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.