Skip to content

hydrocoast/VisClaw.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

399 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisClaw.jl

NOTE: this package is unofficial and the author is not engaged in the Clawpack Development Team.

Build Status Codecov Coveralls

VisClaw.jl is a Julia package of the Clawpack visualization tools (see http://www.clawpack.org).
This allows to draw figures and animations using the Julia language.

Requirements

Installation

  • If you want to plot using GMT.jl, install the GMT in advance. Note that GMT.jl does NOT install the GMT program.

  • You can install the latest VisClaw.jl using the built-in package manager (accessed by pressing ] in the Julia REPL) to add the package.

pkg> add VisClaw

Usage

  • In preparation, run some of the Clawpack simulations
    (e.g. chile2010 $CLAW/geoclaw/examples/tsunami/chile2010 and
    ike $CLAW/geoclaw/examples/storm-surge/ike).

  • This package uses either Makie.jl or GMT.jl to plot results of the numerical simulation. Makie.jl is more suitable for a quick check. The following codes generate a spatial distribution of the sea surface height using Makie.jl (CairoMakie.jl):

julia> using VisClaw
julia> simdir = joinpath(CLAW, "geoclaw/examples/tsunami/chile2010/_output")
julia> fig = quickview(simdir; colormap=:balance, colorrange=(-0.5,0.5))
>> Press ENTER with a blank to finish
>> Input a file sequence number you want to plot:
checkpoint time (1 to 19) =

Topography data also can be easily plotted:

julia> topo = loadtopo(simdir)
julia> fig = makietopo(topo)

See Examples_using_Makie.ipynb and Examples_using_GMT.ipynb for more information.

Plot gallery

The following figures are generated with the Julia scripts in example/ .

using GMT.jl

sea surface elevation

topography and bathymetry

seafloor deformation (dtopo)

wind and pressure fields

using Makie.jl

License

BSD 3-Clause

Author

Takuya Miyashita
Disaster Prevention Research Institute, Kyoto University

About

Visualization tools for Clawpack simulations with the Julia language

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors