Skip to content

Commit 39867da

Browse files
Add iotools functions for Meteonorm (#2499)
* Create meteonorm.py * Add get_meteonorm_tmy * Add private shared parse function * Apply suggestions from code review Co-authored-by: Ioannis Sifnaios <[email protected]> * Apply suggestions from code review Co-authored-by: Ioannis Sifnaios <[email protected]> * Improve docstring * Improve functions * Add first round of tests * Update tests * Full test coverage * Fix linter * Fix tests * Increase test coverage * Implement feedback from Meteonorm review * Implement feedback from code review from kandersolar * basic endpoint only support '1h', rename terrain_situation * Split get_meteonorm into forecast and observation * Fix linter * Split observation/forecast into four functions * Fix linter * Implement changes from review from kandersolar * Set index to be the middle of the period * Extend test coverage --------- Co-authored-by: Ioannis Sifnaios <[email protected]>
1 parent 6dfeaf8 commit 39867da

File tree

5 files changed

+949
-0
lines changed

5 files changed

+949
-0
lines changed

docs/sphinx/source/reference/iotools.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,19 @@ Commercial datasets
9292
Accessing these APIs typically requires payment.
9393
Datasets provide near-global coverage.
9494

95+
Meteonorm
96+
*********
97+
98+
.. autosummary::
99+
:toctree: generated/
100+
101+
iotools.get_meteonorm_forecast_basic
102+
iotools.get_meteonorm_forecast_precision
103+
iotools.get_meteonorm_observation_training
104+
iotools.get_meteonorm_observation_realtime
105+
iotools.get_meteonorm_tmy
106+
107+
95108
SolarAnywhere
96109
*************
97110

docs/sphinx/source/whatsnew/v0.13.1.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Bug fixes
2020

2121
Enhancements
2222
~~~~~~~~~~~~
23+
* Add iotools functions to retrieve irradiance and weather data from Meteonorm:
24+
:py:func:`~pvlib.iotools.get_meteonorm_forecast_basic`, :py:func:`~pvlib.iotools.get_meteonorm_forecast_precision`,
25+
:py:func:`~pvlib.iotools.get_meteonorm_observation_realtime`, :py:func:`~pvlib.iotools.get_meteonorm_observation_training`,
26+
and :py:func:`~pvlib.iotools.get_meteonorm_tmy`.
27+
(:pull:`2499`)
2328
* Add :py:func:`pvlib.iotools.get_nasa_power` to retrieve data from NASA POWER free API.
2429
(:pull:`2500`)
2530
* :py:func:`pvlib.spectrum.spectral_factor_firstsolar` no longer emits warnings

pvlib/iotools/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,9 @@
3939
from pvlib.iotools.solcast import get_solcast_historic # noqa: F401
4040
from pvlib.iotools.solcast import get_solcast_tmy # noqa: F401
4141
from pvlib.iotools.solargis import get_solargis # noqa: F401
42+
from pvlib.iotools.meteonorm import get_meteonorm_forecast_basic # noqa: F401
43+
from pvlib.iotools.meteonorm import get_meteonorm_forecast_precision # noqa: F401, E501
44+
from pvlib.iotools.meteonorm import get_meteonorm_observation_realtime # noqa: F401, E501
45+
from pvlib.iotools.meteonorm import get_meteonorm_observation_training # noqa: F401, E501
46+
from pvlib.iotools.meteonorm import get_meteonorm_tmy # noqa: F401
4247
from pvlib.iotools.nasa_power import get_nasa_power # noqa: F401

0 commit comments

Comments
 (0)