Skip to content

Commit

Permalink
default AMIP diagnostics in driver
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Oct 14, 2024
1 parent a54b270 commit 6df692e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions experiments/ClimaEarth/run_amip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ Random.seed!(random_seed)
atmos_config_dict, config_dict = get_atmos_config_dict(config_dict, job_id)
atmos_config_object = CA.AtmosConfig(atmos_config_dict)

if config_dict["mode_name"] == "amip" && config_dict["output_default_diagnostics"]
@info "Using default AMIP diagnostics"
!haskey(config_dict, "diagnostics") && (config_dict["diagnostics"] = [])
push!(
config_dict["diagnostics"],
Dict(
"short_name" => ["mse", "lr", "edt", "evu", "ts", "mass_strf", "stab", "vt", "egr", "toa_fluxes_net"],
"reduction_time" => "average",
"period" => "1days",
),
)
end

## read in some parsed command line arguments, required by this script
mode_name = config_dict["mode_name"]
energy_check = config_dict["energy_check"]
Expand Down

0 comments on commit 6df692e

Please sign in to comment.