Commit 6a8dbca6 authored by Valentino Lauciani's avatar Valentino Lauciani
Browse files

Update

parent 7217116b
#!/bin/bash
echo Your container args are: "$@"
cd /opt/example/
cat ${1} | /opt/hyp2000/bin/hyp2000
cat /opt/example/output/hypo.prt
# docker run -v $(pwd)/example:/opt/data hyp2000 italy2000.hyp
if [ -d /opt/data/ ]; then
DIR_DATA=/opt/data/
#
if [ -d ${DIR_DATA}/output ]; then
DIR_OUTPUT=${DIR_DATA}/output
rm ${DIR_OUTPUT}/*
else
mkdir ${DIR_OUTPUT}/
fi
#
if [ -d ${DIR_DATA}/input ]; then
DIR_INPUT=${DIR_DATA}/input
if [ -f ${DIR_INPUT}/${1} ]; then
FILE_INPUT=${1}
cd ${DIR_DATA}/input
cat ${FILE_INPUT} | /opt/hyp2000/bin/hyp2000
cat ${DIR_OUTPUT}/hypo.prt
else
echo " The \"${DIR_INPUT}/${1}\" doesn't exist."
echo ""
exit 1
fi
else
echo " the \"${DIR_DATA}/input\" doesn't exist."
echo ""
exit 1
fi
else
echo " the \"/opt/data/\" doesn't exist."
echo ""
exit 1
fi
200 T 2000 0
LET 5 2 3 2 2
H71 1 1 3
STA './all_stations.hinv'
CRH 1 'hypoinverse/models/italy.crh'
MAG 1 T 3 1
DUR -.81 2.22 0 .0011 0, 5*0, 9999 1
FC1 'D' 2 'HHZ' 'EHZ'
PRE 7, 3 0 4 9, 5 6 4 9, 1 1 0 9, 2 1 0 9, 4 4 4 9, 3 0 0 9, 4 0 0 9
RMS 4 .40 2 4
ERR .10
POS 1.78
REP T T
JUN T
MIN 4
NET 4
ZTR 5 T
DIS 6 100 1. 7.
DAM 7 30 0.5 0.9 0.005 0.02 0.6 100 500
WET 1. .75 .5 .25
ERF T
TOP F
LST 1 1 0
KPR 2
* COP 5
CAR 3
PRT '/tmp/hypo.prt'
SUM '/tmp/hypo.sum'
ARC '/tmp/hypo.arc'
APP F T F
CON 25 0.04 0.001
PHS './input.phs'
LOC
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment