pvlib.iotools.read_psm3

pvlib.iotools.read_psm3(filename)[source]

Read an NSRDB PSM3 weather file (formatted as SAM CSV). The NSRDB is described in 1 and the SAM CSV format is described in 2.

Changed in version 0.9.0: The function now returns a tuple where the first element is a dataframe and the second element is a dictionary containing metadata. Previous versions of this function had the return values switched.

Parameters

filename (str) – Filename of a file containing data to read.

Returns

  • data (pandas.DataFrame) – timeseries data from NREL PSM3

  • metadata (dict) – metadata from NREL PSM3 about the record, see pvlib.iotools.parse_psm3() for fields

References

1

NREL National Solar Radiation Database (NSRDB)

2

Standard Time Series Data File Format