fre.app.generate_time_averages.cdoTimeAverager module

class using (mostly) cdo functions for time-averages

class fre.app.generate_time_averages.cdoTimeAverager.cdoTimeAverager(pkg, var, unwgt, avg_type)

Bases: timeAverager

class inheriting from abstract base class timeAverager generates time-averages using cdo (mostly, see weighted approach)

generate_timavg(infile=None, outfile=None)

use cdo package routines via python bindings

Parameters:
  • self – This is an instance of the class cdoTimeAverager

  • infile (str, list) – path to history file, or list of paths, default is None

  • outfile (str) – path to where output file should be stored, default is None

Returns:

1 if the instance variable self.avg_typ is unsupported, 0 if function has a clean exit

Return type:

int