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, defaultFalse) – 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 VARIABLE_MAP.
- Returns
data (
pandas.DataFrame) – Timeseries data from CAMS Radiation or McClearpvlib.iotools.get_cams()for fieldsmetadata (
dict) – Metadata available in the file.
References