pvlib.iotools.read_psm3#

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.

Parameters
  • 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.

Returns

References

1

NREL National Solar Radiation Database (NSRDB)

2

Standard Time Series Data File Format