Skip to content

Commit cd0845d

Browse files
committed
Move param files, test scripts
1 parent b0835eb commit cd0845d

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

hashpy/data/dbhash.pf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# pf file for dbhash
2+
#
3+
# These are parameters passed to the interactive version of HASH.
4+
# They are used to constrain various things during runtime. An
5+
# additional constraint is found in the include files for the FORTRAN
6+
# routines, but libhashpy must be recompiled if those files are changed.
7+
8+
npolmin 8 # Enter mininum number of polarities (e.g., 8)
9+
max_agap 90 # Enter maximum azimuthal gap (e.g., 90)
10+
max_pgap 60 # Enter maximum takeoff angle gap (e.g., 60)
11+
dang 5 # Enter grid angle for focal mech search, in degrees 5(min {0})
12+
nmc 25 # Enter number of trials (e.g., 30)
13+
maxout 100 # Enter maxout for focal mech. output (e.g., 500)
14+
badfrac 0.1 # Enter fraction of picks presumed bad (e.g., 0.10)
15+
delmax 500 # Enter maximum allowed source-station distance, in km (e.g., 120)
16+
cangle 45 # Enter angle for computing mechanisms probability, in degrees (e.g., 45)
17+
prob_max 0.25 # Enter probability threshold for multiples (e.g., 0.1)
18+
19+
# Added by Mark ----------------------------------#
20+
# Directory containing velocity model files:
21+
vmodel_dir /home/markwill/Code/python/hashpy/hashpy/data
22+
23+
# List of velocity model file names:
24+
# Format: z (km) v (km/s)
25+
vmodels &Tbl{
26+
vz.pickema1
27+
vz.pickema2
28+
vz.pickema3
29+
}

hashpy/tests/run_dbhash.ipy

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
if __name__=='__main__':
3+
import time
4+
from dbhash import main
5+
t0 = time.time()
6+
ret = main()
7+
print time.time()-t0

0 commit comments

Comments
 (0)