Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrocoast committed Oct 12, 2020
1 parent a836cd9 commit c785d82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion example/current_Plots_ike.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/plotscheck.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c785d82

Please sign in to comment.