Skip to content

Commit 3c7b5da

Browse files
authored
Add get_solargis iotools function (#1969)
* Initial commit * Linting * Include v0.10.4 whatsnew * Add example * Update raises message * Update doc section order * Set parser to etree * Add tests * Add test skip for pandas<1.3.0 * Fix nan replacement and add variable conversion * Add time_resolution conversion * Fix precipitable_water conversion in solcast * Address reviewer comments * Fix test issues * Update pandas version in ci/requirements*.yml * Update test_solcast.py * Advance numpy requirement
1 parent c4a2b4b commit 3c7b5da

16 files changed

+309
-21
lines changed

ci/requirements-py3.10.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.16.0
12-
- pandas >= 0.25.0
11+
- numpy >= 1.17.3
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

ci/requirements-py3.11.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.16.0
12-
- pandas >= 0.25.0
11+
- numpy >= 1.17.3
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

ci/requirements-py3.12.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.16.0
12-
- pandas >= 0.25.0
11+
- numpy >= 1.17.3
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

ci/requirements-py3.7-min.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ dependencies:
1414
- pip:
1515
- dataclasses
1616
- h5py==3.1.0
17-
- numpy==1.16.0
18-
- pandas==0.25.0
17+
- numpy==1.17.3
18+
- pandas==1.3.0
1919
- scipy==1.5.0
2020
- pytest-rerunfailures # conda version is >3.6
2121
- pytest-remotedata # conda package is 0.3.0, needs > 0.3.1

ci/requirements-py3.7.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.16.0
12-
- pandas >= 0.25.0
11+
- numpy >= 1.17.3
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

ci/requirements-py3.8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.16.0
12-
- pandas >= 0.25.0
11+
- numpy >= 1.17.3
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

ci/requirements-py3.9.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.16.0
12-
- pandas >= 0.25.0
11+
- numpy >= 1.17.3
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

docs/sphinx/source/reference/iotools.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ of sources and file formats relevant to solar energy modeling.
5353
iotools.get_solcast_historic
5454
iotools.get_solcast_forecast
5555
iotools.get_solcast_live
56+
iotools.get_solargis
5657

5758

5859
A :py:class:`~pvlib.location.Location` object may be created from metadata

docs/sphinx/source/whatsnew.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ What's New
66

77
These are new features and improvements of note in each release.
88

9+
.. include:: whatsnew/v0.10.4.rst
910
.. include:: whatsnew/v0.10.3.rst
1011
.. include:: whatsnew/v0.10.2.rst
1112
.. include:: whatsnew/v0.10.1.rst

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ v0.10.4 (Anticipated March, 2024)
88
Enhancements
99
~~~~~~~~~~~~
1010
* Added the Huld PV model used by PVGIS (:pull:`1940`)
11+
* Add :py:func:`pvlib.iotools.get_solargis` for retrieving Solargis
12+
irradiance data. (:pull:`1969`)
1113
* Added function :py:func:`pvlib.shading.projected_solar_zenith_angle`,
1214
a common calculation in shading and tracking. (:issue:`1734`, :pull:`1904`)
1315
* Added :py:func:`~pvlib.iotools.get_solrad` for fetching irradiance data from
1416
the SOLRAD ground station network. (:pull:`1967`)
1517
* Added metadata parsing to :py:func:`~pvlib.iotools.read_solrad` to follow the standard iotools
1618
convention of returning a tuple of (data, meta). Previously the function only returned a dataframe. (:pull:`1968`)
1719

18-
1920
Bug fixes
2021
~~~~~~~~~
2122
* Fixed an error in solar position calculations when using
@@ -33,6 +34,7 @@ Bug fixes
3334
``temperature_model_parameters`` are specified on the passed ``system`` instead of on its ``arrays``. (:issue:`1759`).
3435
* :py:func:`pvlib.irradiance.ghi_from_poa_driesse_2023` now correctly makes use
3536
of the ``xtol`` argument. Previously, it was ignored. (:issue:`1970`, :pull:`1971`)
37+
* Fixed incorrect unit conversion of precipitable water used for the Solcast iotools functions.
3638
* :py:class:`~pvlib.modelchain.ModelChain.infer_temperature_model` now raises a more useful error when
3739
the temperature model cannot be inferred (:issue:`1946`)
3840

@@ -49,6 +51,8 @@ Documentation
4951

5052
Requirements
5153
~~~~~~~~~~~~
54+
* Minimum version of pandas advanced from 0.25.0 to 1.3.0. (:pull:`1969`)
55+
* Minimum version of numpy advanced from 1.16.0 to 1.17.3. (:pull:`1969`)
5256

5357

5458
Contributors
@@ -59,5 +63,4 @@ Contributors
5963
* Cliff Hansen (:ghuser:`cwhanse`)
6064
* Roma Koulikov (:ghuser:`matsuobasho`)
6165
* Adam R. Jensen (:ghuser:`AdamRJensen`)
62-
* Kevin Anderson (:ghuser:`kandersolar`)
6366
* Peter Dudfield (:ghuser:`peterdudfield`)

0 commit comments

Comments
 (0)