HydPy-Meteo-Glob-IO (external global radiation data)

Use meteo_glob_io as a submodel to supply (relative) main models like evap_ret_tw2002 with externally available global radiation time series.

Integration test

Note

When new to HydPy, consider reading section Integration Tests first.

The only functionality of meteo_glob_io is to read the input time series of global radiation. Hence, configuring and testing it does not require additional explanations:

>>> from hydpy.models.meteo_glob_io import *
>>> parameterstep()
>>> from hydpy import Element
>>> element = Element("element")
>>> element.model = model
>>> from hydpy import IntegrationTest, pub
>>> pub.timegrids = "2000-01-01", "2000-01-03", "1d"
>>> parameters.update()
>>> test = IntegrationTest(element)
>>> test.dateformat = "%Y-%d-%m"
>>> inputs.globalradiation.series = 200.0, 400.0
>>> test()
Click to see the table
>>> from hydpy import round_
>>> round_(model.get_globalradiation())
400.0
class hydpy.models.meteo_glob_io.Model[source]

Bases: AdHocModel, RadiationModel_V2

HydPy-Meteo-Glob-IO (external global radiation data).

The following interface methods are available to main models using the defined model as a submodel:
DOCNAME: DocName = ('Meteo-Glob-IO', 'external global radiation data')
REUSABLE_METHODS: ClassVar[tuple[type[ReusableMethod], ...]] = ()
class hydpy.models.meteo_glob_io.InputSequences(master: Sequences, cls_fastaccess: type[TypeFastAccess_co] | None = None, cymodel: CyModelProtocol | None = None)

Bases: InputSequences

Input sequences of model meteo_glob_io.

The following classes are selected: