From 7761daa9cff161543aa9f5f08a29c2d21eefa627 Mon Sep 17 00:00:00 2001 From: Zhaoyi Shen <11598433+szy21@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:18:17 -0800 Subject: [PATCH] modify ci_plots --- post_processing/ci_plots.jl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/post_processing/ci_plots.jl b/post_processing/ci_plots.jl index 144efb5617e..fb6ac36922d 100644 --- a/post_processing/ci_plots.jl +++ b/post_processing/ci_plots.jl @@ -598,7 +598,10 @@ function make_plots( output_paths::Vector{<:AbstractString}, ) simdirs = SimDir.(output_paths) - vars = map_comparison(simdirs, short_names) + short_names, reduction = ["pfull", "va", "wa", "rv"], "inst" + vars = map_comparison(simdirs, short_names) do simdir, short_name + return get(simdir; short_name, reduction) + end make_plots_generic(output_paths, vars, z = 1500, time = 10days) end @@ -609,7 +612,7 @@ function make_plots( simdirs = SimDir.(output_paths) short_names, reduction = ["pfull", "va", "wa", "rv", "hus"], "inst" vars = map_comparison(simdirs, short_names) do simdir, short_name - return get(simdir; short_name, reduction) |> ClimaAnalysis.average_lon + return get(simdir; short_name, reduction) end make_plots_generic(output_paths, vars, z = 1500, time = LAST_SNAP) end @@ -643,8 +646,10 @@ function make_plots( output_paths::Vector{<:AbstractString}, ) simdirs = SimDir.(output_paths) - short_names = ["pfull", "va", "wa", "rv", "hus"] - vars = map_comparison(simdirs, short_names) + short_names, reduction = ["pfull", "va", "wa", "rv", "hus"], "inst" + vars = map_comparison(simdirs, short_names) do simdir, short_name + return get(simdir; short_name, reduction) + end make_plots_generic(output_paths, vars, z = 1500, time = 10days) end