pvlib.iotools.read_cams#
- pvlib.iotools.read_cams(filename, integrated=False, label=None, map_variables=True)[source]#
Read a CAMS Radiation or McClear file into a pandas DataFrame.
CAMS Radiation and McClear are described in [1].
- Parameters:
filename (str) – Filename of a file 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. See
pvlib.iotools.get_cams()
for fields.metadata (dict) – Metadata available in the file.
References