Skip to content

Commit

Permalink
Merge pull request #1023 from CliMA/js/nightly-fix
Browse files Browse the repository at this point in the history
fix nightly AMIP diagnostics
  • Loading branch information
juliasloan25 authored Oct 17, 2024
2 parents 09b5f7f + 7ce9218 commit 28b7fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions experiments/ClimaEarth/run_amip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/regridder_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28b7fc8

Please sign in to comment.