hydromt_sfincs.components.quadtree.SfincsQuadtreeElevation#
- class hydromt_sfincs.components.quadtree.SfincsQuadtreeElevation(model: SfincsModel)[source]#
Elevation stored as
zin the quadtree grid.dataexposes only elevation, with its mesh and grid attributes. The parent grid reads and writes elevation inqtrfile.- __init__(model: SfincsModel)[source]#
Methods
__init__(model)clear_overlay()Invalidate the cached elevation-overlay trimesh.
close()Clean up all open datasets.
compute_quadtree(compute_chunk, output[, ...])Traverse levels & chunks, automatically create DA, compute, and sample back.
create(elevation_list[, nrmax, ...])Interpolate topobathy (z) data to the model grid.
create_uniform(zb)finish_write()Finish the write functionality after cleanup was called for all components in the model.
interpolate_bathymetry(x, y, z[, method])x, y, and z are numpy arrays with coordinates and bathymetry values
map_overlay(file_name[, xlim, ylim, cmap, ...])Render a PNG elevation overlay.
read()Ensure the parent grid is loaded, including elevation in
qtrfile.test_equal(other)Test if two components are equal.
write()Leave elevation persistence in
qtrfileto the parent grid.Attributes
Return only elevation, retaining the mesh even before it is created.
data_catalogReturn the data catalog of the model this component is associated with.
maskGet the mask from the quadtree 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.