At the moment the intervals attribute of the cell_methods is removed on the grounds that time: mean (interval: 1 hour) can be misleading.
|
def _remove_hour_interval(cell_method): |
|
"""Helper retains all non 'hour' intervals.""" |
|
return (i for i in cell_method.intervals if i.find("hour") == -1) |
The UM sets the interval as 1 for anything <= 1 hour (e.g. when sampling every time step). However it is set correctly for longer sampling periods, e.g. 3 hours for ESM1.6 radiation or 6 hours for the ESM1.6 pressure level diagnostics. In this case it should be retained.
At the moment the intervals attribute of the cell_methods is removed on the grounds that
time: mean (interval: 1 hour)can be misleading.um2nc-standalone/src/um2nc/um2netcdf.py
Lines 463 to 465 in d2613ee
The UM sets the interval as 1 for anything <= 1 hour (e.g. when sampling every time step). However it is set correctly for longer sampling periods, e.g. 3 hours for ESM1.6 radiation or 6 hours for the ESM1.6 pressure level diagnostics. In this case it should be retained.