From 9e70a8ba4cd84b3499b484f5928494365e460d32 Mon Sep 17 00:00:00 2001 From: Michael Souffront <17328135+msouff@users.noreply.github.com> Date: Sat, 24 Aug 2024 22:22:51 -0600 Subject: [PATCH] cftime fix for forecast records --- geoglows_ecflow/resources/day_one_forecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoglows_ecflow/resources/day_one_forecast.py b/geoglows_ecflow/resources/day_one_forecast.py index 4f01ec0..606eb2e 100644 --- a/geoglows_ecflow/resources/day_one_forecast.py +++ b/geoglows_ecflow/resources/day_one_forecast.py @@ -257,7 +257,7 @@ def update_forecast_records( # set the time variable attributes record.variables["time"].setncattr( - "units", f"hours since {year}0101 00:00:00" + "units", f"hours since {year}-01-01 00:00:00" ) # calculate the number of 3-hourly timesteps that will occur this year