Skip to content

Commit 91a73c3

Browse files
committed
Merge remote-tracking branch 'upstream/main' into get_era5
2 parents 42af726 + 258f78f commit 91a73c3

File tree

23 files changed

+35
-599
lines changed

23 files changed

+35
-599
lines changed

docs/examples/system-models/plot_oedi_9068.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@
143143

144144
keys = ['ghi', 'dni', 'dhi', 'temp_air', 'wind_speed',
145145
'albedo', 'precipitable_water']
146-
psm3, psm3_metadata = pvlib.iotools.get_psm3(latitude, longitude, api_key,
147-
email, interval=5, names=2019,
148-
map_variables=True, leap_day=True,
149-
attributes=keys)
146+
psm3, psm3_metadata = pvlib.iotools.get_nsrdb_psm4_conus(latitude, longitude,
147+
api_key, email,
148+
year=2019, interval=5,
149+
parameters=keys,
150+
map_variables=True,
151+
leap_day=True)
150152

151153
# %%
152154
# Pre-generate some model inputs

docs/sphinx/source/reference/iotools.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ Satellite-derived irradiance and weather data for the Americas.
8181
iotools.get_nsrdb_psm4_conus
8282
iotools.get_nsrdb_psm4_full_disc
8383
iotools.read_nsrdb_psm4
84-
iotools.get_psm3
85-
iotools.read_psm3
86-
iotools.parse_psm3
8784

8885

8986
Commercial datasets

docs/sphinx/source/user_guide/extras/faq.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,7 @@ Where can I get irradiance data for my simulation?
5252

5353
pvlib has a module called iotools which has several functions for
5454
retrieving irradiance data as well as reading standard file formats
55-
such as EPW, TMY2, and TMY3. For free irradiance data, you may
56-
consider NREL's NSRDB which can be accessed using the
57-
:py:func:`pvlib.iotools.get_psm3` function and is available for
58-
North America. For Europe and Africa, you may consider looking into
59-
CAMS (:py:func:`pvlib.iotools.get_cams`).
60-
PVGIS (:py:func:`pvlib.iotools.get_pvgis_hourly`) is another option, which
61-
provides irradiance from several different databases with near global coverage.
62-
pvlib also has functions for accessing a plethora of ground-measured
63-
irradiance datasets, including the BSRN, SURFRAD, SRML, and NREL's MIDC.
55+
such as EPW, TMY2, and TMY3. See :ref:`weatherdata`.
6456

6557

6658
Can I use PVsyst (PAN/OND) files with pvlib?

docs/sphinx/source/user_guide/modeling_topics/weather_data.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ online web APIs. For example, :py:func:`~pvlib.iotools.get_pvgis_hourly`
112112
downloads data from PVGIS's webservers and returns it as a python variable.
113113
Functions that retrieve data from the internet are named ``get_``, followed
114114
by the name of the data source: :py:func:`~pvlib.iotools.get_bsrn`,
115-
:py:func:`~pvlib.iotools.get_psm3`, :py:func:`~pvlib.iotools.get_pvgis_tmy`,
115+
:py:func:`~pvlib.iotools.get_nsrdb_psm4_conus`,
116+
:py:func:`~pvlib.iotools.get_pvgis_tmy`,
116117
and so on.
117118

118119
For satellite/reanalysis datasets, the location is specified by latitude and
@@ -121,7 +122,7 @@ longitude in decimal degrees:
121122
.. code-block:: python
122123
123124
latitude, longitude = 33.75, -84.39 # Atlanta, Georgia, United States
124-
df, metadata = pvlib.iotools.get_psm3(latitude, longitude, map_variables=True, ...)
125+
df, metadata = pvlib.iotools.get_pvgis_tmy(latitude, longitude, map_variables=True, ...)
125126
126127
127128
For ground station networks, the location identifier is the station ID:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ Enhancements
109109
:py:func:`pvlib.iotools.get_pvgis_horizon`. (:issue:`1290`, :pull:`1395`)
110110
* Update the URL used in the :py:func:`pvlib.iotools.get_cams` function. The new URL supports load-balancing
111111
and redirects to the fastest server. (:issue:`1688`, :pull:`1740`)
112-
* :py:func:`pvlib.iotools.get_psm3` now has a ``url`` parameter to give the user
112+
* :py:func:`!pvlib.iotools.get_psm3` now has a ``url`` parameter to give the user
113113
the option of controlling what NSRDB endpoint is used. (:pull:`1736`)
114-
* :py:func:`pvlib.iotools.get_psm3` now uses the new NSRDB 3.2.2 endpoint for
114+
* :py:func:`!pvlib.iotools.get_psm3` now uses the new NSRDB 3.2.2 endpoint for
115115
hourly and half-hourly single-year datasets. (:issue:`1591`, :pull:`1736`)
116116
* The default solar position algorithm (NREL SPA) is now 50-100% faster. (:pull:`1748`)
117117
* Added functions to retrieve daily precipitation, temperature, and snowfall data
@@ -146,7 +146,7 @@ Testing
146146
Documentation
147147
~~~~~~~~~~~~~
148148
* Updated the description of the interval parameter in
149-
:py:func:`pvlib.iotools.get_psm3`. (:issue:`1702`, :pull:`1712`)
149+
:py:func:`!pvlib.iotools.get_psm3`. (:issue:`1702`, :pull:`1712`)
150150
* Fixed outdated nbviewer links. (:issue:`1721`, :pull:`1726`)
151151

152152

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Enhancements
2828

2929
Bug fixes
3030
~~~~~~~~~
31-
* :py:func:`~pvlib.iotools.get_psm3` no longer incorrectly returns clear-sky
31+
* :py:func:`!pvlib.iotools.get_psm3` no longer incorrectly returns clear-sky
3232
DHI instead of clear-sky GHI when requesting ``ghi_clear``. (:pull:`1819`)
3333
* :py:func:`pvlib.singlediode.bishop88` with ``method='newton'`` no longer
3434
crashes when passed ``pandas.Series`` of length one.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Bug fixes
2929
* Fixed CAMS error message handler in
3030
:py:func:`pvlib.iotools.get_cams`. (:issue:`1799`, :pull:`1905`)
3131
* Fix mapping of the dew point column to ``temp_dew`` when ``map_variables``
32-
is True in :py:func:`pvlib.iotools.get_psm3`. (:pull:`1920`)
32+
is True in :py:func:`!pvlib.iotools.get_psm3`. (:pull:`1920`)
3333
* Fix :py:class:`pvlib.modelchain.ModelChain` to use attribute `clearsky_model`.
3434
(:pull:`1924`)
3535

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Breaking changes
1414
* ``pvlib.iotools.read_srml_month_from_solardat`` was deprecated in v0.10.0 and has
1515
now been completely removed. The function is replaced by :py:func:`~pvlib.iotools.get_srml()`.
1616
(:pull:`1779`, :pull:`1989`)
17-
* The ``leap_day`` parameter in :py:func:`~pvlib.iotools.get_psm3`
17+
* The ``leap_day`` parameter in :py:func:`!pvlib.iotools.get_psm3`
1818
now defaults to True instead of False. (:issue:`1481`, :pull:`1991`)
19-
* :py:func:`~pvlib.iotools.get_psm3`, :py:func:`~pvlib.iotools.read_psm3`, and
20-
:py:func:`~pvlib.iotools.parse_psm3` all now have ``map_variables=True`` by
19+
* :py:func:`!pvlib.iotools.get_psm3`, :py:func:`!pvlib.iotools.read_psm3`, and
20+
:py:func:`!pvlib.iotools.parse_psm3` all now have ``map_variables=True`` by
2121
default. (:issue:`1425`, :pull:`2094`)
2222
* The deprecated ``ivcurve_pnts`` parameter of :py:func:`pvlib.pvsystem.singlediode`
2323
is removed. Use :py:func:`pvlib.pvsystem.v_from_i` and

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Deprecations
2828
:pull:`2467`, :pull:`2466`)
2929

3030
- :py:func:`~pvlib.iotools.parse_epw`
31-
- :py:func:`~pvlib.iotools.parse_psm3`
31+
- :py:func:`!pvlib.iotools.parse_psm3`
3232
- :py:func:`~pvlib.iotools.parse_cams`
3333
- :py:func:`~pvlib.iotools.parse_bsrn`
3434

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ v0.13.2 (Anticipated December, 2025)
66

77
Breaking Changes
88
~~~~~~~~~~~~~~~~
9+
* Following the removal of the NSRDB PSM3 API, the :func:`!pvlib.iotools.get_psm3`,
10+
:func:`!pvlib.iotools.read_psm3`, and :func:`!pvlib.iotools.parse_psm3`
11+
functions are removed. (:issue:`2581`, :pull:`2582`)
912

1013

1114
Deprecations

0 commit comments

Comments
 (0)