Skip to content

Commit 07d1b6c

Browse files
committed
Doc updates, addition to what's new and api
1 parent 3680846 commit 07d1b6c

File tree

3 files changed

+51
-10
lines changed

3 files changed

+51
-10
lines changed

docs/sphinx/source/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ relevant to solar energy modeling.
309309
iotools.read_tmy3
310310
iotools.read_srml
311311
iotools.read_srml_month_from_solardat
312+
iotools.read_surfrad
312313

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Enhancements
2222
~~~~~~~~~~~~
2323
* Created :py:func:`pvlib.iotools.read_srml` and :py:func:`pvlib.iotools.read_srml_month_from_solardat`
2424
to read University of Oregon Solar Radiation Monitoring Laboratory data. (:issue:`589`)
25+
* Created :py:func:`pvlib.iotools.read_surfrad` to read NOAA SURFRAD data. (:issue:`590`)
2526

2627
Bug fixes
2728
~~~~~~~~~

pvlib/iotools/surfrad.py

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,60 @@ def read_surfrad(filename):
3737
Tuple of the form (data, metadata).
3838
3939
data: Dataframe
40-
Dataframe with the fields found in SURFRAD_COLUMNS.
40+
Dataframe with the fields found below.
4141
metadata: dict
4242
Site metadata included in the file.
4343
4444
Notes
4545
-----
46-
Metadata includes the following fields
47-
=============== ====== ===============
48-
key format description
49-
=============== ====== ===============
50-
station String site name
51-
latitude Float site latitude
52-
longitude Float site longitude
53-
elevation Int site elevation
54-
surfrad_version Int surfrad version
46+
Metadata dictionary includes the following fields:
47+
48+
=============== ====== ===============
49+
Key Format Description
50+
=============== ====== ===============
51+
station String site name
52+
latitude Float site latitude
53+
longitude Float site longitude
54+
elevation Int site elevation
55+
surfrad_version Int surfrad version
56+
=============== ====== ===============
57+
58+
Dataframe includes the following fields:
59+
60+
================== ====== ==========================================
61+
SURFRAD data Field Format Description
62+
================== ====== ==========================================
63+
year int year as 4 digit int
64+
jday int day of year 1-365(or 366)
65+
month int month (1-12)
66+
day int day of month(1-31)
67+
hour int hour (0-23)
68+
minute int minute (0-59)
69+
dt float decimal time i.e. 23.5 = 2330
70+
zen float solar zenith angle (deg)
71+
**Fields below have associated qc flags labeled <field>_flag.**
72+
-----------------------------------------------------------------------
73+
dw_solar float downwelling global solar(W/m^2)
74+
uw_solar float updownwelling global solar(W/m^2)
75+
direct_n float direct normal solar (W/m^2)
76+
diffuse float downwelling diffuse solar (W/m^2)
77+
dw_ir float downwelling thermal infrared (W/m^2)
78+
dw_casetemp float downwelling IR case temp (K)
79+
dw_dometemp float downwelling IR dome temp (K)
80+
uw_ir float upwelling thermal infrared (W/m^2)
81+
uw_casetemp float upwelling IR case temp (K)
82+
uw_dometemp float upwelling IR case temp (K)
83+
uvb float global uvb (miliWatts/m^2)
84+
par float photosynthetically active radiation(W/m^2)
85+
netsolar float net solar (dw_solar - uw_solar) (W/m^2)
86+
netir float net infrared (dw_ir - uw_ir) (W/m^2)
87+
totalnet float net radiation (netsolar+netir) (W/m^2)
88+
temp float 10-meter air temperature (?C)
89+
rh float relative humidity (%)
90+
windspd float wind speed (m/s)
91+
winddir float wind direction (deg, clockwise from north)
92+
pressure float station pressure (mb)
93+
================== ====== ==========================================
5594
5695
See README files located in the station directories in the SURFRAD
5796
data archives[2] for details on SURFRAD daily data files.

0 commit comments

Comments
 (0)