Skip to content

Commit

Permalink
Add retrieval functions for daily precip, snow, and temperature data …
Browse files Browse the repository at this point in the history
…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 <39184289+AdamRJensen@users.noreply.github.com>

* 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 <39184289+AdamRJensen@users.noreply.github.com>
  • Loading branch information
kandersolar and AdamRJensen committed Jun 29, 2023
1 parent a506a47 commit 9be4487
Show file tree
Hide file tree
Showing 5 changed files with 744 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/sphinx/source/reference/iotools.rst
Expand Up @@ -37,6 +37,11 @@ of sources and file formats relevant to solar energy modeling.
iotools.get_cams
iotools.read_cams
iotools.parse_cams
iotools.get_acis_prism
iotools.get_acis_nrcc
iotools.get_acis_mpe
iotools.get_acis_station_data
iotools.get_acis_available_stations

A :py:class:`~pvlib.location.Location` object may be created from metadata
in some files.
Expand Down
5 changes: 5 additions & 0 deletions docs/sphinx/source/whatsnew/v0.9.6.rst
Expand Up @@ -81,6 +81,11 @@ Enhancements
* :py:func:`pvlib.iotools.get_psm3` now uses the new NSRDB 3.2.2 endpoint for
hourly and half-hourly single-year datasets. (:issue:`1591`, :pull:`1736`)
* The default solar position algorithm (NREL SPA) is now 50-100% faster. (:pull:`1748`)
* Added functions to retrieve daily precipitation, temperature, and snowfall data
from the NOAA's ACIS service: :py:func:`~pvlib.iotools.get_acis_prism`,
:py:func:`~pvlib.iotools.get_acis_nrcc`, :py:func:`~pvlib.iotools.get_acis_mpe`,
:py:func:`~pvlib.iotools.get_acis_station_data`, and
:py:func:`~pvlib.iotools.get_acis_available_stations`. (:issue:`1293`, :pull:`1767`)

Bug fixes
~~~~~~~~~
Expand Down
5 changes: 5 additions & 0 deletions pvlib/iotools/__init__.py
Expand Up @@ -21,3 +21,8 @@
from pvlib.iotools.sodapro import get_cams # noqa: F401
from pvlib.iotools.sodapro import read_cams # noqa: F401
from pvlib.iotools.sodapro import parse_cams # noqa: F401
from pvlib.iotools.acis import get_acis_prism # noqa: F401
from pvlib.iotools.acis import get_acis_nrcc # noqa: F401
from pvlib.iotools.acis import get_acis_mpe # noqa: F401
from pvlib.iotools.acis import get_acis_station_data # noqa: F401
from pvlib.iotools.acis import get_acis_available_stations # noqa: F401

0 comments on commit 9be4487

Please sign in to comment.