Skip to content

Commit

Permalink
Merge pull request #11 from mhearne-usgs/urlfix
Browse files Browse the repository at this point in the history
Fixed an X server problem in getstrec, and fixed url in setup script.
  • Loading branch information
mhearne-usgs authored Feb 15, 2017
2 parents a823541 + 4e9fe98 commit 3c6d91d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions getstrec.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@
import datetime
import math

#matplotlib workaround
import matplotlib

#this allows us to have a non-interactive backend - essential on systems without a display
matplotlib.use('Agg')

#local imports
from strec.gmpe import GMPESelector
from strec import gmpemap
import strec.utils
from strec import cmt



def getPlungeValues(strike,dip,rake,mag):
mom = 10**((mag*1.5)+16.1)
d2r = math.pi/180.0
Expand Down
2 changes: 1 addition & 1 deletion strec_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from strec.mtreader import createDataFile,appendDataFile
import strec.utils

SLABURL = 'http://earthquake.usgs.gov/data/slab/models/allslabs.tgz'
SLABURL = 'ftp://hazards.cr.usgs.gov/web/data/slab/models/allslabs.tgz'
HIST_GCMT_URL = 'http://www.ldeo.columbia.edu/~gcmt/projects/CMT/catalog/jan76_dec10.ndk.gz'
MONTHLY_GCMT_URL = 'http://www.ldeo.columbia.edu/~gcmt/projects/CMT/catalog/NEW_MONTHLY/'

Expand Down

0 comments on commit 3c6d91d

Please sign in to comment.