DataComponent
- class unifhy.DataComponent(timedomain, spacedomain, dataset, substituting_class, io_slice=None)
Bases:
unifhy.component.ComponentThe DataComponent is a
Componentsubstituting simulations with data.Its intended use is to replace a compartment of the hydrological cycle with measurements or with previous simulation runs.
Instantiation
- Parameters
- timedomain:
TimeDomainobject The temporal dimension of the
Component.- spacedomain:
SpaceDomainobject The spatial dimension of the
Component.- dataset:
DataSetobject The dataset containing the substitute data substituting the
Component’s simulated time series. The data in dataset must be compatible in time with timedomain and compatible in space with spacedomain.- substituting_class:
Componentobject The subclass of
Componentthat the DataComponent is substituting its simulated time series with the ones in dataset.- io_slice:
int, optional The length of the time slice to use for input/output operations. This corresponds to the number of component timesteps to read/write at once. If not set, its default value is 100 (arbitrary).
- timedomain: