Sign inSign up

ingv/mopad

By ingv

•Updated 28 days ago

MoPaD - Moment tensor Plotting and Decomposition

Image
0

534

ingv/mopad repository overview

License GitHub issues

Docker build Docker Image Size (latest semver) Docker Pulls

CI GitHub

⁠MoPaD - Moment tensor Plotting and Decomposition

Run MoPad within a docker.

MoPad is a tool for graphical and numerical analysis of seismic moment tensors

by Lars Krieger and Sebastian Heimann

http://www.larskrieger.de/mopad/⁠

https://github.com/geophysics/MoPaD⁠

⁠Quickstart

⁠Get Docker image

To obtain mopad docker image, you have two options:

⁠1) Get built image from DockerHub (preferred)

Get the last built image from DockerHub repository:

docker pull ingv/mopad:latest
⁠2) Build by yourself

Clone the git repositry:

git clone https://github.com/INGV/mopad.git
cd mopad

build the image:

docker build --tag ingv/mopad . 

in case of errors, try:

docker build --no-cache --pull --tag ingv/mopad . 
⁠Run as a service

Make a local volume (directory) for nginx cache:

mkdir /tmp/mopad_cache

run the container in daemon (-d) mode:

docker run -d --name mopad_container --rm -v /tmp/mopad_cache:/var/cache -p 8383:80 ingv/mopad

Then test access to http://localhost:8383/⁠.

Examples of URL:

Reminder: mopad plot mxx,myy,mzz,mxy,mxz,myz ...

⁠Run without X11 display
docker run --rm -it ingv/mopad ...mopad-arguments...
⁠Run with X11 display
docker run --rm -it \
	-e DISPLAY=${MYIP}:0 \
	--mount type=bind,source=/tmp/.X11-unix,target=/tmp/.X11-unix \
	ingv/mopad \
	$@
⁠Run by Wrapper Script
./runMoPadInDocker.sh plot 0,1,-1,0,0,0
⁠Run by Pipe usage
⁠Additonal argument "piped"
docker run --rm ingv/mopad piped ...mopad-arguments... -f "docker_outfilename" > "host_outfilename"

N.B.: "docker_outfilename" must be the last argument.

Examples:

docker run --rm  ingv/mopad piped plot 0,1,-1,0,0,0 -f tmp.svg > out.svg
docker run --rm  ingv/mopad piped plot 0,1,-1,0,0,0 -f tmp.png > out.png
⁠Custom pipe usage
docker run --rm ingv/mopad "mopad plot 0,1,-1,0,0,0 -f tmp.png && cat tmp.png" > out.png

⁠Contribute

Thanks to your contributions!

Here is a list of users who already contributed to this repository:
⁠

⁠Author

(c) 2023 Matteo Quintiliani matteo.quintiliani[at]ingv.it
(c) 2023 Valentino Lauciani valentino.lauciani[at]ingv.it

Istituto Nazionale di Geofisica e Vulcanologia, Italia

Tag summary

Content type

Image

Digest

sha256:2e9e948b4…

Size

160.9 MB

Last updated

28 days ago

docker pull ingv/mopad