hydromt_sfincs.components.quadtree.SnapWaveQuadtreeMask#
- class hydromt_sfincs.components.quadtree.SnapWaveQuadtreeMask(model: SfincsModel)[source]#
- __init__(model: SfincsModel)[source]#
Methods
__init__(model)clear_overlay()Invalidate the cached mask-overlay dataframe.
close()Clean up all open datasets.
create([model, zmin, zmax, include_polygon, ...])Setup active model snapwave mask and add boundaries.
create_active([model, zmin, zmax, ...])Setup active model cells.
create_boundary([model, btype, zmin, zmax, ...])Set boundary cells in the model mask.
finish_write()Finish the write functionality after cleanup was called for all components in the model.
map_overlay(file_name[, xlim, ylim, colors, ...])Render a PNG mask overlay.
read()Ensure the parent grid is loaded, including masks in
qtrfile.test_equal(other)Test if two components are equal.
to_gdf([option])Returns a geodataframe with points for each cell in the mask
write()Leave mask persistence in
qtrfileto the parent grid.Attributes
Return only this mask, retaining the parent mesh.
data_catalogReturn the data catalog of the model this component is associated with.
empty_maskGet an empty mask with the same shape as the model grid.
face_coordinateshas_open_boundariesReturns True if mask contains open boundaries (mask = 2)
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.