Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Apr 11, 2024
1 parent 34abdf3 commit c4c1fc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions experiments/AMIP/user_io/amip_visualizer.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Plots
import Printf
import ClimaComms
import ClimaCore as CC
import ClimaCoupler: PostProcessor
Expand Down Expand Up @@ -27,7 +29,6 @@ function amip_paperplots(
nlat = 180,
nlon = 360,
)

diags_names = propertynames(post_spec)

all_plots = []
Expand All @@ -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)...),
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion experiments/AMIP/user_io/plot_helper.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Plots
import ClimaCoupler.PostProcessor: DataPackage, ZLatData, LatLonData
import ClimaCoupler: PostProcessor

"""
plot(post_data::DataPackage; zmd_params = (;), hsd_params = (;))
Expand Down

0 comments on commit c4c1fc7

Please sign in to comment.