pvlib.iotools.get_srml#
- pvlib.iotools.get_srml(station, start, end, filetype='PO', map_variables=True, url='http://solardat.uoregon.edu/download/Archive/')[source]#
Request data from UoO SRML and read it into a Dataframe.
The University of Oregon Solar Radiation Monitoring Laboratory (SRML) is described in 1. A list of stations can be found in 2.
Data is returned for the entire months between and including start and end.
- Parameters
station (str) – Two letter station abbreviation.
start (datetime-like) – First day of the requested period
end (datetime-like) – Last day of the requested period
filetype (string, default: 'PO') – SRML file type to gather. See notes for explanation.
map_variables (bool, default: True) – When true, renames columns of the DataFrame to pvlib variable names where applicable. See variable
VARIABLE_MAP
.url (str, default: ‘http://solardat.uoregon.edu/download/Archive/’) – API endpoint URL
- Returns
data (pd.DataFrame) – Dataframe with data from SRML.
meta (dict) – Metadata.
Notes
File types designate the time interval of a file and if it contains raw or processed data. For instance, RO designates raw, one minute data and PO designates processed one minute data. The availability of file types varies between sites. Below is a table of file types and their time intervals. See [1] for site information.
time interval
raw filetype
processed filetype
1 minute
RO
PO
5 minute
RF
PF
15 minute
RQ
PQ
hourly
RH
PH
Warning
SRML data has nighttime data prefilled with 0s through the end of the current month (i.e., values are provided for data in the future).
References
- 1
University of Oregon Solar Radiation Measurement Laboratory http://solardat.uoregon.edu/
- 2
Station ID codes - Solar Radiation Measurement Laboratory http://solardat.uoregon.edu/StationIDCodes.html