hydromt_delwaq.components.DemissionGeometryComponent#
Summary of Methods and Attributes#
Component class |
Methods |
Attributes |
|---|---|---|
|
- class hydromt_delwaq.components.DemissionGeometryComponent(model: Model, *, filename: str = 'config/B7_geometry.inc')[source]#
Bases:
ModelComponentDemission geometry component.
Inherits from the HydroMT-core ModelComponent. Handles the Demission geometry file as a Pandas DataFrame.
Columns of the DataFrame are:
TotArea: area of the segment
fPaved: fraction of the segment that is paved
fUnpaved: fraction of the segment that is unpaved
fOpenWater: fraction of the segment that is open water
Initialize a DemissionGeometryComponent.
- Parameters:
model (Model) – HydroMT model instance
filename (str) – The path to use for reading and writing of component data by default. By default “config/B7_geometry.inc”.
- set(data: DataFrame) None[source]#
Add geometry data.
- Parameters:
data (pd.DataFrame) – DataFrame with geometry data.
- test_equal(other: ModelComponent) tuple[bool, dict[str, str]][source]#
Test if two geometry components are equal.
- property data_catalog: DataCatalog#
Return the data catalog of the model this component is associated with.
- finish_write()#
Finish the write functionality after cleanup was called for all components in the model.
All DeferredFileClose objects can overwrite any lazy loaded files now.
- property model: Model#
Return the model object this component is associated with.
- property root: ModelRoot#
Return the root of the model this component is associated with.