pvlib.iotools.parse_cams#

pvlib.iotools.parse_cams(fbuf, integrated=False, label=None, map_variables=True)[source]#

Parse a file-like buffer with data in the format of a CAMS Radiation or McClear file. The CAMS solar radiation services are described in 1.

Parameters
  • fbuf (file-like object) – File-like object containing data to read.

  • integrated (boolean, default False) – Whether to return radiation parameters as integrated values (Wh/m^2) or as average irradiance values (W/m^2) (pvlib preferred units)

  • label ({'right', 'left'}, optional) – Which bin edge label to label time-step with. The default is ‘left’ for all time steps except for ‘1M’ which has a default of ‘right’.

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

Returns

  • data (pandas.DataFrame) – Timeseries data from CAMS Radiation or McClear

  • metadata (dict) – Metadata available in the file.

References

1

CAMS solar radiation documentation