hydromt_sfincs.components.quadtree.SfincsQuadtreeElevation#

class hydromt_sfincs.components.quadtree.SfincsQuadtreeElevation(model: SfincsModel)[source]#

Elevation stored as z in the quadtree grid.

data exposes only elevation, with its mesh and grid attributes. The parent grid reads and writes elevation in qtrfile.

__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 qtrfile to the parent grid.

Attributes

data

Return only elevation, retaining the mesh even before it is created.

data_catalog

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

mask

Get the mask from the quadtree 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.