hydromt.model.components.ModelComponent#

class hydromt.model.components.ModelComponent(model: Model)[source]#

Abstract base class for ModelComponent.

__init__(model: Model)[source]#

Methods

__init__(model)

close()

Clean up all open datasets.

finish_write()

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

read()

Read the file(s) into the component.

test_equal(other)

Test if two components are equal.

write()

Write the component to file(s).

Attributes

data_catalog

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

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.