Skip to content

Commit 6616608

Browse files
committed
Fix errors in plotting spectra
1 parent e3f8fcd commit 6616608

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

post_processing/ci_plots.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -617,12 +617,12 @@ function make_plots(::DryBaroWavePlots, output_paths::Vector{<:AbstractString})
617617
short_names, reduction = ["pfull", "va", "wa", "rv"], "inst"
618618
short_names_spectra = ["ke"]
619619
vars = map_comparison(simdirs, short_names) do simdir, short_name
620-
return slice(get(simdir; short_name, reduction), time = LAST_SNAP)
620+
return slice(get(simdir; short_name, reduction), time = 10days)
621621
end
622622
vars_spectra =
623623
map_comparison(simdirs, short_names_spectra) do simdir, short_name
624624
compute_spectrum(
625-
slice(get(simdir; short_name, reduction), time = LAST_SNAP),
625+
slice(get(simdir; short_name, reduction), time = 10days),
626626
)
627627
end
628628
vars = vcat(vars..., vars_spectra...)
@@ -650,7 +650,7 @@ function make_plots(
650650
short_names, reduction = ["pfull", "va", "wa", "rv"], "inst"
651651
short_names_spectra = ["ke"]
652652
vars = map_comparison(simdirs, short_names) do simdir, short_name
653-
return get(simdir; short_name, reduction)
653+
return slice(get(simdir; short_name, reduction), time = 10days)
654654
end
655655
vars_spectra =
656656
map_comparison(simdirs, short_names_spectra) do simdir, short_name
@@ -660,7 +660,7 @@ function make_plots(
660660
end
661661
vars = vcat(vars..., vars_spectra...)
662662

663-
make_plots_generic(output_paths, vars, z = 1500, time = 10days)
663+
make_plots_generic(output_paths, vars, z = 1500)
664664
end
665665

666666
function make_plots(
@@ -707,7 +707,7 @@ function make_plots(
707707
short_names, reduction = ["pfull", "va", "wa", "rv", "hus"], "inst"
708708
short_names_spectra = ["ke"]
709709
vars = map_comparison(simdirs, short_names) do simdir, short_name
710-
return get(simdir; short_name, reduction)
710+
return slice(get(simdir; short_name, reduction), time = 10days)
711711
end
712712
vars_spectra =
713713
map_comparison(simdirs, short_names_spectra) do simdir, short_name
@@ -716,7 +716,7 @@ function make_plots(
716716
)
717717
end
718718
vars = vcat(vars..., vars_spectra...)
719-
make_plots_generic(output_paths, vars, z = 1500, time = 10days)
719+
make_plots_generic(output_paths, vars, z = 1500)
720720
end
721721

722722
DryHeldSuarezPlots = Union{

0 commit comments

Comments
 (0)