Skip to content

Commit 9be4487

Browse files
Add retrieval functions for daily precip, snow, and temperature data from NOAA RCC ACIS (#1767)
* create acis.py and add get_acis_precipitation function * add tests * sphinx * tweak * better tests * better whatsnew * import in iotools/init * fix all these broken things * edits from review * correct PR number * split up code to be one function per dataset; add station functions * fix tests * Apply suggestions from code review Co-authored-by: Adam R. Jensen <[email protected]> * more from review * add degree days to df descriptions * add degree day columns to variable map * fix valid daterange test oversight * cm -> mm for snow variables * revert back to cm for snow --------- Co-authored-by: Adam R. Jensen <[email protected]>
1 parent a506a47 commit 9be4487

File tree

5 files changed

+744
-0
lines changed

5 files changed

+744
-0
lines changed

docs/sphinx/source/reference/iotools.rst

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ of sources and file formats relevant to solar energy modeling.
3737
iotools.get_cams
3838
iotools.read_cams
3939
iotools.parse_cams
40+
iotools.get_acis_prism
41+
iotools.get_acis_nrcc
42+
iotools.get_acis_mpe
43+
iotools.get_acis_station_data
44+
iotools.get_acis_available_stations
4045

4146
A :py:class:`~pvlib.location.Location` object may be created from metadata
4247
in some files.

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

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ Enhancements
8181
* :py:func:`pvlib.iotools.get_psm3` now uses the new NSRDB 3.2.2 endpoint for
8282
hourly and half-hourly single-year datasets. (:issue:`1591`, :pull:`1736`)
8383
* The default solar position algorithm (NREL SPA) is now 50-100% faster. (:pull:`1748`)
84+
* Added functions to retrieve daily precipitation, temperature, and snowfall data
85+
from the NOAA's ACIS service: :py:func:`~pvlib.iotools.get_acis_prism`,
86+
:py:func:`~pvlib.iotools.get_acis_nrcc`, :py:func:`~pvlib.iotools.get_acis_mpe`,
87+
:py:func:`~pvlib.iotools.get_acis_station_data`, and
88+
:py:func:`~pvlib.iotools.get_acis_available_stations`. (:issue:`1293`, :pull:`1767`)
8489

8590
Bug fixes
8691
~~~~~~~~~

pvlib/iotools/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@
2121
from pvlib.iotools.sodapro import get_cams # noqa: F401
2222
from pvlib.iotools.sodapro import read_cams # noqa: F401
2323
from pvlib.iotools.sodapro import parse_cams # noqa: F401
24+
from pvlib.iotools.acis import get_acis_prism # noqa: F401
25+
from pvlib.iotools.acis import get_acis_nrcc # noqa: F401
26+
from pvlib.iotools.acis import get_acis_mpe # noqa: F401
27+
from pvlib.iotools.acis import get_acis_station_data # noqa: F401
28+
from pvlib.iotools.acis import get_acis_available_stations # noqa: F401

0 commit comments

Comments
 (0)