fre.app.generate_time_averages.frepytoolsTimeAverager module
class for python-native routine using netCDF4 and numpy to crunch time-averages
- class fre.app.generate_time_averages.frepytoolsTimeAverager.frepytoolsTimeAverager(pkg, var, unwgt, avg_type)
Bases:
timeAveragerclass inheriting from abstract base class timeAverager generates time-averages using a python-native approach avoids using other third party statistics functions by design.
- generate_timavg(infile=None, outfile=None)
frepytools approach in a python-native manner. deliberately avoids pre-packaged routines.
- Parameters:
self – This is an instance of the class frepytoolsTimeAverager
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 requested variable is not found, and 0 if function has a clean exit
- Return type:
int