solarpy.iotools.read_t16

Contents

solarpy.iotools.read_t16#

solarpy.iotools.read_t16(filename, drop_dates=False, map_variables=False, encoding='utf-8')#

Read a time series data file following the IEA PVPS T16 file format.

Parameters:
  • filename (str or path-like) – Filename to the data file

  • drop_dates (bool, default False) – If True, drop the Year, Month, Day, Hour, and Minute columns from the returned DataFrame. The datetime index is always set regardless.

  • map_variables (bool, default False) – If True, renames columns of the DataFrame to pvlib variable names (GHI→ghi, DIF→dhi, DNI→dni) and shortens metadata keys to latitude, longitude, and altitude.

  • encoding (str, default 'utf-8') – Encoding of the file passed to open().

Returns:

  • data (pd.DataFrame) – Time series data

  • meta (dict) – Metadata