solarpy.iotools.write_t16#
- solarpy.iotools.write_t16(filename, data, meta, lines=None, missing=None, encoding='utf-8')#
Write a time series DataFrame to a file in the IEA PVPS T16 format.
- Parameters:
filename (str or path-like) – Path to the output file.
data (pandas.DataFrame) – Time series data with a timezone-aware
DatetimeIndex; the index is converted to UTC before extracting Year/Month/Day/Hour/Minute. Column names are written as-is to the header row.meta (dict) –
Station metadata. Recognised keys (either short or long form):
"latitude"or"latitude deg N""longitude"or"longitude deg E""altitude"or"altitude in m amsl""stationcode"(optional)
lines (list of str or None, default
None) – Additional lines written to the header after the location metadata, each prefixed with"# ". IfNone, no extra lines are written.missing (str or None, default
None) – String written in place of missing (NaN) values.Noneleaves the cell empty.encoding (str, default
"utf-8") – File encoding passed toopen().