InputCollection
- class rameau.core.inputs.InputCollection(rainfall, pet, snow=None, temperature=None, riverobs=None, riverpumping=None, groundwaterobs=None, groundwaterpumping=None, dates=None)[source]
Collection of
Inputrepresenting either meteorological, observations, or pumping data time series for a given set of watersheds.Data are passed to the constructor by keyword arguments whose names refer to the data types to store (e.g. rainfall, riverflow observations, etc.). Keyword arguments accept
Input,numpy.ndarrayorpandas.DataFrame. In the case ofnumpy.ndarrayorpandas.DataFrame, data is converted intoInputin the constructor.If a
pandas.DataFramewith apandas.DatetimeIndexas index is passed, this index is used to set the input dates.- Parameters:
rainfall (
numpy.ndarray,Inputorpandas.DataFrame) – Rainfall time series (mm).pet (
ndarray,InputorDataFrame) – PET time series (mm).temperature (
numpy.ndarray,Inputorpandas.DataFrame, optional) – Temperature time series (°C).snow (
numpy.ndarray,Inputorpandas.DataFrame, optional) – Snowfall time series (mm).riverobs (
numpy.ndarray,Inputorpandas.DataFrame, optional) – Observed river flow time series (m3/s).groundwaterobs (
numpy.ndarray,Inputorpandas.DataFrame, optional) – Observed groundwater level time series (m).riverpumping (
numpy.ndarray,Inputorpandas.DataFrame, optional) – River pumping time series (m3/s).groundwaterpumping (
numpy.ndarray,Inputorpandas.DataFrame, optional) – Groundwater pumping time series (m3/s).dates (
pandas.DatetimeIndex, optional) – If provided, overrides the dates of all the inputs in the collection.
- Returns:
Notes
The consistency between each input (i.e. shapes of dates and data) is checked when setting the collection of inputs to the
Modeleither through the constructor or by attribute assignment.Methods
from_files(rainfall, pet[, temperature, ...])Create InputCollection from CSV files.
Attributes
Input data file paths.
Observed groundwater level time series (m)
Groundwater pumping time series (m3/s)
Input data file format.
PET time series (mm).
Rainfall time series (mm).
Observed river flow time series (m3/s)
River pumping time series (m3/s)
Snow time series (mm)
Temperature time series (°C)