diff --git a/experiments/AMIP/user_io/amip_visualizer.jl b/experiments/AMIP/user_io/amip_visualizer.jl index f1e7797e5..db27067e8 100644 --- a/experiments/AMIP/user_io/amip_visualizer.jl +++ b/experiments/AMIP/user_io/amip_visualizer.jl @@ -1,3 +1,5 @@ +import Plots +import Printf import ClimaComms import ClimaCore as CC import ClimaCoupler: PostProcessor @@ -27,7 +29,6 @@ function amip_paperplots( nlat = 180, nlon = 360, ) - diags_names = propertynames(post_spec) all_plots = [] @@ -50,7 +51,7 @@ function amip_paperplots( post_data.data[1] = sum(post_data.data) == 0 ? post_data.data[1] + eps() : post_data.data[1] # avoids InexactError # create individual plots - p = plot( + p = Plots.plot( post_data, zmd_params = (; getproperty(plot_spec, name)...), hsd_params = (; getproperty(plot_spec, name)...), @@ -84,8 +85,7 @@ end Reads in a variable from a HDF5 file, as outputted by `ClimaCoupler.Dignostics`. """ function read_latest_model_data(name::Symbol, filedir::String, root::String) - - varfile_root = @sprintf "%s%s" string(name) root + varfile_root = Printf.@sprintf "%s%s" string(name) root filename = glob("*" * varfile_root * "*", filedir)[end] # Ensure file gets read onto CPU for postprocessing diff --git a/experiments/AMIP/user_io/plot_helper.jl b/experiments/AMIP/user_io/plot_helper.jl index c9ad25a98..398b30cc3 100644 --- a/experiments/AMIP/user_io/plot_helper.jl +++ b/experiments/AMIP/user_io/plot_helper.jl @@ -1,5 +1,5 @@ import Plots -import ClimaCoupler.PostProcessor: DataPackage, ZLatData, LatLonData +import ClimaCoupler: PostProcessor """ plot(post_data::DataPackage; zmd_params = (;), hsd_params = (;))