diff --git a/example/current_Plots_ike.jl b/example/current_Plots_ike.jl index f2fb94a..e2f4c44 100644 --- a/example/current_Plots_ike.jl +++ b/example/current_Plots_ike.jl @@ -11,9 +11,11 @@ output_prefix = "ike_velo" using Dates: Dates timeorigin = Dates.DateTime(2008, 9, 13, 7) +## for CI ######## pltchk = plotscheck(simdir; vartype=:current, testplot=true) pltchk = plotscheck(simdir; vartype=:storm, testplot=true) -pltchk = plotscheck(simdir, 1; testplot=true) +pltchk = plotscheck(simdir; testplot=true) +################## ## load current amrall = loadcurrent(simdir) diff --git a/src/plotscheck.jl b/src/plotscheck.jl index 1e320d0..8d0f2d2 100644 --- a/src/plotscheck.jl +++ b/src/plotscheck.jl @@ -1,10 +1,10 @@ ############################################################################## """ - plt = plotscheck("simlation/path/_output"::AbstractString; vartype::Symbol=:surface, AMRlevel::AbstractVector=[], runup=true, region="", kwargs...) + plt = plotscheck("simlation/path/_output"::AbstractString; vartype::Symbol=:surface, AMRlevel=[], runup=true, region="", kwargs...) Quick checker of the spatial distribution """ -function plotscheck(simdir::AbstractString; vartype::Symbol=:surface, AMRlevel::AbstractVector=[], runup::Bool=true, region="", testplot::Bool=false, kwargs...) +function plotscheck(simdir::AbstractString; vartype::Symbol=:surface, AMRlevel=[], runup::Bool=true, region="", testplot::Bool=false, kwargs...) !any([vartype==s for s in [:surface, :storm, :current]]) && error("Invalid input argument vartype: $vartype") ## define the filepath & filename