pyrad.io.TimeSeries#

class pyrad.io.TimeSeries(desc, timevec=None, timeformat=None, maxlength=None, datatype='')[source]#

Holding timeseries data and metadata.

Variables:
  • description (array of str) – Description of the data of the time series.

  • time_vector (array of datetime objects)

  • timeformat (how to print the time (default:) – ‘Date, UTC [seconds since midnight]’

  • dataseries (List of _dataSeries object holding the) – data

  • Methods

  • --------

  • add_dataseries (Add a data series to the object)

  • write (Write time series to a file)

  • plot (Plot a figure of a time series)

Initalize the object.

Parameters:
  • desc (array of str)

  • timevec (array of datetime)

  • timeformat (specifies time format)

  • maxlength (Maximal length of the time series)

  • num_el (Number of values in the time series)

add_dataseries(label, unit_name, unit[, ...])

Add a new data series to the timeseries object.

add_timesample(dt, values)

Add a new sample to the time series.

plot(fname[, ymin, ymax])

Make a figure of a time series

plot_hist(fname[, step])

Make histograms of time series

write(fname)

Write time series output