From 72162b58b574b007c8f863c2207729c5f81a91ec Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Thu, 4 Apr 2024 11:25:02 -0700 Subject: [PATCH] Use outpdates dates from atmos.integrator --- experiments/AMIP/coupler_driver.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/experiments/AMIP/coupler_driver.jl b/experiments/AMIP/coupler_driver.jl index 6e554f91e..5fe1f5f92 100644 --- a/experiments/AMIP/coupler_driver.jl +++ b/experiments/AMIP/coupler_driver.jl @@ -114,7 +114,7 @@ config_dict = merge(parsed_args, config_dict) config_dict_atmos = get_atmos_config(config_dict) ## merge dictionaries of command line arguments, coupler dictionary and component model dictionaries -## (if there are common keys, the last dictorionary in the `merge` arguments takes precedence) +## (if there are common keys, the last dictionary in the `merge` arguments takes precedence) config_dict = merge(config_dict_atmos, config_dict) ## read in some parsed command line arguments, required by this script @@ -858,15 +858,17 @@ if ClimaComms.iamroot(comms_ctx) # Compare against observations if t_end > 84600 @info "Error against observations" + output_dates = cs.dates.date0[] .+ Second.(atmos_sim.integrator.sol.t) + include("user_io/leaderboard.jl") compare_vars = ["pr"] function plot_biases(dates, output_name) output_path = joinpath(COUPLER_ARTIFACTS_DIR, "bias_$(output_name).png") Leaderboard.plot_biases(atmos_sim.integrator.p.output_dir, compare_vars, dates; output_path) end - plot_biases(cs.dates.date, "total") + plot_biases(output_dates, "total") - MAM, JJA, SON, DJF = Leaderboard.split_by_season(cs.dates.date) + MAM, JJA, SON, DJF = Leaderboard.split_by_season(output_dates) !isempty(MAM) && plot_biases(cs.dates.date, "MAM") !isempty(JJA) && plot_biases(cs.dates.date, "JJA")