HydPy-Meteo-Clear-Glob-IO (external clear sky and global radiation data)¶
Use meteo_clear_glob_io
as a submodel to supply (relative) main models like
evap_ret_fao56
with externally available clear-sky solar radiation and 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 clear-sky
and global radiation. Hence, configuring and testing it does not require additional
explanations:
>>> from hydpy.models.meteo_clear_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.clearskysolarradiation.series = 200.0, 400.0
>>> inputs.globalradiation.series = 100.0, 200.0
>>> test()
Click to see the table
>>> from hydpy import round_
>>> round_(model.get_clearskysolarradiation())
400.0
>>> round_(model.get_globalradiation())
200.0
- class hydpy.models.meteo_clear_glob_io.Model[source]¶
Bases:
AdHocModel
,RadiationModel_V3
HydPy-Meteo-Clear-Glob-IO (external clear sky and global radiation data).
- The following interface methods are available to main models using the defined model as a submodel:
Get_GlobalRadiation_V2
Get the global radiation in W/m².Get_ClearSkySolarRadiation_V2
Get the clear sky solar radiation in W/m².
- REUSABLE_METHODS: ClassVar[tuple[type[ReusableMethod], ...]] = ()¶
- class hydpy.models.meteo_clear_glob_io.InputSequences(master: Sequences, cls_fastaccess: type[TypeFastAccess_co] | None = None, cymodel: CyModelProtocol | None = None)¶
Bases:
InputSequences
Input sequences of model meteo_clear_glob_io.
- The following classes are selected:
ClearSkySolarRadiation()
Clear sky solar radiation [W/m²].GlobalRadiation()
Global radiation [W/m²].