8000 Add map_variables and -99999 nan value to read_crn by AdamRJensen · Pull Request #1368 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Add map_variables and -99999 nan value to read_crn #1368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Feb 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Extend documentation
  • Loading branch information
AdamRJensen committed Jan 7, 2022
commit 1fcaa9773cb3e63f8874d6771ab9194b6edaeec2
16 changes: 10 additions & 6 deletions pvlib/iotools/crn.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@


def read_crn(filename, map_variables=True):
"""
Read a NOAA USCRN fixed-width file into pandas dataframe. The CRN is
described in [1]_ and [2]_.
"""Read a NOAA USCRN fixed-width file into a pandas dataframe.

The CRN network consists of a +100 meteorological stations covering the
U.S. and is described in [1]_ and [2]_. The primary goal of CRN is to
provide long-term measurements of temperature, precipitation, and soil
moisture and temperature. Additionally, global horizontal irradiance (GHI)
is measured using a photodiode pyranometer.

Parameters
----------
Expand All @@ -63,10 +67,10 @@ def read_crn(filename, map_variables=True):
-----
CRN files contain 5 minute averages labeled by the interval ending
time. Here, missing data is flagged as NaN, rather than the lowest
possible integer for a field (e.g. -999 or -99). Air temperature in
deg C. Wind speed in m/s at a height of 1.5 m above ground level.
possible integer for a field (e.g. -999 or -99). Air temperature is in
deg C and wind speed is in m/s at a height of 1.5 m above ground level.

Variables corresponding to standard pvlib variables are renamed,
Variables corresponding to standard pvlib variables are by default renamed,
e.g. `SOLAR_RADIATION` becomes `ghi`. See the
`pvlib.iotools.crn.VARIABLE_MAP` dict for the complete mapping.

Expand Down
0