pvlib.iotools.read_psm3(filename, map_variables=None)[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.

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

  • map_variables (bool) – When true, renames columns of the Dataframe to pvlib variable names where applicable. See variable VARIABLE_MAP.


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

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



NREL National Solar Radiation Database (NSRDB)


Standard Time Series Data File Format