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 services are described in 1 and 2.
- 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'}, default: None) – 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 CAMS_VARIABLE_MAP.
- Returns
data (pandas.DataFrame) – Timeseries data from CAMS Radiation or McClear
metadata (dict) – Metadata available in the file.
References