Skip to content

Commit 53da1a6

Browse files
authored
Merge branch 'main' into deprecate-parse
2 parents 1e88527 + 0cf6c8a commit 53da1a6

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Deprecations
1919

2020
Bug fixes
2121
~~~~~~~~~
22-
22+
* :py:func:`pvlib.iotools.get_pvgis_tmy` now returns the correct dtypes when
23+
when ``outputformat='epw'``. (:issue:`2399`, :pull:`2417`)
2324

2425
Enhancements
2526
~~~~~~~~~~~~
@@ -50,8 +51,10 @@ Documentation
5051
(:issue:`2423`, :pull:`2426`)
5152
* Clarify which SAPM coefficients are required by the ``module`` parameter in
5253
:py:func:`~pvlib.pvsystem.sapm` (:issue:`2392`, :pull:`2435`)
53-
* Update references in :py:func`~pvlib.irradiance.get_extra_radiation`
54-
(:issue:`2333`, :pull:`2347`)
54+
* Update references in :py:func:`~pvlib.irradiance.get_extra_radiation`
55+
(:issue:`2333`, :pull:`2437`)
56+
* Update references in :py:func:`~pvlib.iotools.get_cams` and :py:func:`~pvlib.iotools.read_cams`
57+
(:issue:`2427`, :pull:`2457`)
5558

5659
Requirements
5760
~~~~~~~~~~~~
@@ -76,3 +79,5 @@ Contributors
7679
* Will Holmgren (:ghuser:`wholmgren`)
7780
* Muhammad Rebaal (:ghuser:`Muhammad-Rebaal`)
7881
* omahs (:ghuser:`omahs`)
82+
* Adam R. Jensen (:ghuser:`AdamRJensen`)
83+
* Marion Schroedter-Homscheidt (:ghuser:`mschroedter`)

pvlib/iotools/pvgis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ def _coerce_and_roll_tmy(tmy_data, tz, year):
410410
np.roll(tmy_data, tz, axis=0),
411411
columns=tmy_data.columns,
412412
index=new_index)
413+
# GH 2399
414+
new_tmy_data = \
415+
new_tmy_data.astype(dtype=dict(zip(tmy_data.columns, tmy_data.dtypes)))
413416
return new_tmy_data
414417

415418

pvlib/iotools/sodapro.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
145145
e.g. `sza` becomes `solar_zenith`. See variable :const:`VARIABLE_MAP` for
146146
the complete mapping.
147147
148+
For large geospatial areas, CAMS offers a pre-calculated
149+
gridded dataset [4]_ over land and coastal areas. This dataset
150+
may not include the most recent data coverage and may not be
151+
based on the most recent CAMS version. This dataset is not available
152+
through pvlib.
153+
148154
See Also
149155
--------
150156
pvlib.iotools.read_cams
@@ -157,13 +163,15 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
157163
158164
References
159165
----------
160-
.. [1] `CAMS solar radiation documentation
161-
<https://atmosphere.copernicus.eu/solar-radiation>`_
166+
.. [1] `CAMS solar radiation time-series documentation. Climate Data Store.
167+
<https://ads.atmosphere.copernicus.eu/datasets/cams-solar-radiation-timeseries>`_
162168
.. [2] `CAMS Radiation Automatic Access (SoDa)
163169
<https://www.soda-pro.com/help/cams-services/cams-radiation-service/automatic-access>`_
164170
.. [3] A. R. Jensen et al., pvlib iotools — Open-source Python functions
165171
for seamless access to solar irradiance data. Solar Energy. 2023. Vol
166172
266, pp. 112092. :doi:`10.1016/j.solener.2023.112092`
173+
.. [4] `CAMS gridded solar radiation documentation.
174+
<https://ads.atmosphere.copernicus.eu/datasets/cams-gridded-solar-radiation>`_
167175
"""
168176
try:
169177
time_step_str = TIME_STEPS_MAP[time_step]
@@ -272,8 +280,8 @@ def read_cams(filename, integrated=False, label=None, map_variables=True):
272280
273281
References
274282
----------
275-
.. [1] `CAMS solar radiation documentation
276-
<https://atmosphere.copernicus.eu/solar-radiation>`_
283+
.. [1] `CAMS solar radiation time-series documentation. Climate Data Store.
284+
<https://ads.atmosphere.copernicus.eu/datasets/cams-solar-radiation-timeseries>`_
277285
"""
278286
metadata = {}
279287

@@ -345,6 +353,5 @@ def read_cams(filename, integrated=False, label=None, map_variables=True):
345353

346354
return data, metadata
347355

348-
349356
parse_cams = deprecated(since="0.12.1", name="parse_cams",
350357
alternative="read_cams")(read_cams)

0 commit comments

Comments
 (0)