pvlib.iotools.get_solrad#

pvlib.iotools.get_solrad(station, start, end, url='https://gml.noaa.gov/aftp/data/radiation/solrad/')[source]#

Request data from NOAA SOLRAD and read it into a Dataframe.

A list of stations and their descriptions can be found in [1], The data files are described in [2].

Data is returned for complete days, including start and end.

Parameters:
  • station (str) – Three letter station abbreviation.

  • start (datetime-like) – First day of the requested period

  • end (datetime-like) – Last day of the requested period

  • url (str, default: ‘https://gml.noaa.gov/aftp/data/radiation/solrad/’) – API endpoint URL

Returns:

  • data (pd.DataFrame) – Dataframe with data from SOLRAD.

  • meta (dict) – Metadata.

See also

read_solrad

Notes

Recent SOLRAD data is 1-minute averages. Prior to 2015-01-01, it was 3-minute averages.

References

Examples

>>> # Retrieve one month of irradiance data from the ABQ SOLRAD station
>>> data, metadata = pvlib.iotools.get_solrad(
>>>     station='abq', start="2020-01-01", end="2020-01-31")