Skip to content

Commit 043f130

Browse files
committed
Add whatsnew, update tests
1 parent 2e83428 commit 043f130

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ Bug fixes
1818

1919
Enhancements
2020
~~~~~~~~~~~~
21-
21+
* Add iotools functions to retrieve irradiance and weather data from NSRDB PSM4 Polar,
22+
which provides satellite-derived irradiance data above 60 degree latitude.
23+
:py:func:`~pvlib.iotools.get_nsrdb_psm4_polar` and
24+
:py:func:`~pvlib.iotools.get_nsrdb_psm4_polar_tmy`.
25+
(:issue:`2639`, :pull:`2807`)
2226

2327
Documentation
2428
~~~~~~~~~~~~~
@@ -42,4 +46,5 @@ Maintenance
4246

4347
Contributors
4448
~~~~~~~~~~~~
45-
49+
* Adam R. Jensen (:ghuser:`AdamRJensen`)
50+
* Erin Tonita (:ghuser:`etoni044`)

pvlib/iotools/psm4.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,9 @@ def get_nsrdb_psm4_polar(latitude, longitude, api_key, email,
644644
high latitude regions, that are outside the field of view of the
645645
geostationary satellites.
646646
647-
The dataset provides data from 2013 onwards over the exclusive economic zone
648-
above 60 degrees north. The data have a spatial resolution of 4 km and a
649-
temporal resolution of 1 hour.
647+
The dataset provides data from 2013 onwards over the exclusive economic
648+
zone above 60 degrees north. The data have a spatial resolution of 4 km
649+
and a temporal resolution of 1 hour.
650650
651651
Parameters
652652
----------

tests/iotools/test_psm4.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,14 @@ def test_get_nsrdb_psm4_polar(nlr_api_key):
8787
data, metadata = psm4.get_nsrdb_psm4_polar(
8888
LATITUDE_POLAR, LONGITUDE_POLAR,
8989
nlr_api_key, PVLIB_EMAIL,
90-
year='2023',
90+
year=2023,
9191
leap_day=False,
9292
parameters=["ghi"],
9393
utc=True,
9494
map_variables=False)
95-
expected = pd.read_csv(POLAR_TEST_DATA)
96-
assert_psm4_equal(data, metadata, expected)
95+
expected, _ = psm4.read_nsrdb_polar(POLAR_TEST_DATA)
96+
#assert_psm4_equal(data, metadata, expected)
97+
pd.testing.assert_frame_equal(data, expected)
9798

9899

99100
@pytest.mark.remote_data

0 commit comments

Comments
 (0)