Loading src/cso/cso_gridded.py +5 −4 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ # 2025-09, Arjo Segers # Updated calculation of temporal means for files with time records. # # 2026-01, Arjo Segers # Fixed timerange setup. # ######################################################################## Loading Loading @@ -593,14 +596,12 @@ class CSO_GriddedAverage(utopya.UtopyaRc): elif tstep in ["day", "daily"]: # start and end of days: rtt1 = pandas.date_range(start=outfile_t1, end=outfile_t2, freq="D")[:-1] rtt2 = pandas.date_range( start=rtt1[0] + pandas.Timedelta(days=1), periods=len(rtt1) ) rtt2 = pandas.date_range(start=rtt1[0] + pandas.Timedelta(days=1), periods=len(rtt1)) # elif tstep in ["hour", "hourly"]: # hours, end is now the same as start ... rtt1 = pandas.date_range(start=outfile_t1, end=outfile_t2, freq="h")[:-1] rtt2 = tt1 rtt2 = rtt1 else: logging.error(f"unsupported output file frequency {tstep}") raise Exception Loading Loading
src/cso/cso_gridded.py +5 −4 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ # 2025-09, Arjo Segers # Updated calculation of temporal means for files with time records. # # 2026-01, Arjo Segers # Fixed timerange setup. # ######################################################################## Loading Loading @@ -593,14 +596,12 @@ class CSO_GriddedAverage(utopya.UtopyaRc): elif tstep in ["day", "daily"]: # start and end of days: rtt1 = pandas.date_range(start=outfile_t1, end=outfile_t2, freq="D")[:-1] rtt2 = pandas.date_range( start=rtt1[0] + pandas.Timedelta(days=1), periods=len(rtt1) ) rtt2 = pandas.date_range(start=rtt1[0] + pandas.Timedelta(days=1), periods=len(rtt1)) # elif tstep in ["hour", "hourly"]: # hours, end is now the same as start ... rtt1 = pandas.date_range(start=outfile_t1, end=outfile_t2, freq="h")[:-1] rtt2 = tt1 rtt2 = rtt1 else: logging.error(f"unsupported output file frequency {tstep}") raise Exception Loading