From 441a884252fcb1fc979004c89d9c7e15533b784d Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Wed, 16 Oct 2024 11:29:13 -0700 Subject: [PATCH 1/2] use 1month period, not 30days --- experiments/ClimaEarth/run_amip.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/ClimaEarth/run_amip.jl b/experiments/ClimaEarth/run_amip.jl index 14d7ca0a49..623586e497 100644 --- a/experiments/ClimaEarth/run_amip.jl +++ b/experiments/ClimaEarth/run_amip.jl @@ -126,8 +126,8 @@ function get_period(t_start, t_end) secs_per_day = 86400 if sim_duration >= 90 * secs_per_day # if duration >= 90 days, take monthly means - period = "30days" - calendar_dt = Dates.Day(30) + period = "1months" + calendar_dt = Dates.Month(1) elseif sim_duration >= 30 * secs_per_day # if duration >= 30 days, take means over 10 days period = "10days" From 7ce9218d4785ec91d201c0aebcb2a9c1a04db678 Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Wed, 16 Oct 2024 17:31:51 -0700 Subject: [PATCH 2/2] format --- test/regridder_tests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regridder_tests.jl b/test/regridder_tests.jl index aa876f45cd..4d966fb338 100644 --- a/test/regridder_tests.jl +++ b/test/regridder_tests.jl @@ -320,7 +320,7 @@ end NCDatasets.defVar(ds, "time", dates, ("time",);) NCDatasets.defVar(ds, "lat", 1:32, ("lat",);) NCDatasets.defVar(ds, "lon", 1:64, ("lon",);) - dummy_data = reshape(1:(32 * 64 * 100), 64, 32, 100) + dummy_data = reshape(1:(32*64*100), 64, 32, 100) NCDatasets.defVar(ds, "dummy_var", dummy_data, ("lon", "lat", "time")) ds.attrib["title"] = "dummy dataset" close(ds)