iris-edu / irisws-syngine

Project components for the IRIS Synthetics Engine (irisws-syngine) web service
GNU General Public License v2.0
2 stars 0 forks source link

Wrong unit for the eventid queries #14

Closed krischer closed 8 years ago

krischer commented 8 years ago

The eventid queries don't convert the moment tensor components from dyne*cm to Nm. Thus the amplitudes are way off when using the eventid parameter. Just multiply with 1E-7 to fix that issue.

# Query.
obspy.read("http://service.iris.edu/irisws/syngine/1/query?"
           "network=IU&station=ANMO&components=Z&format=miniseed"
           "&eventid=GCMT:C201511181831A").plot()

# Reconstruction.
obspy.read("http://service.iris.edu/irisws/syngine/1/query?"
           "network=IU&station=ANMO&components=Z&format=miniseed&"
           "sourcelatitude=-9.1&sourcelongitude=158.490&sourcedepthinmeters=19000&"
           "sourcemomenttensor=1.360e26,-0.439e26,-0.923e26,0.142e26,-1.670e26,1.040e26").plot()

# What it should be.
obspy.read("http://service.iris.edu/irisws/syngine/1/query?"
           "network=IU&station=ANMO&components=Z&format=miniseed&"
           "sourcelatitude=-9.1&sourcelongitude=158.490&sourcedepthinmeters=19000&"
           "sourcemomenttensor=1.360e19,-0.439e19,-0.923e19,0.142e19,-1.670e19,1.040e19").plot()

screen shot 2015-11-20 at 12 50 18

CTrabant commented 8 years ago

Good catch. Fixed. Thanks!

obspy.read("http://service.iris.edu/irisws/syngine/1/query?"
           "network=IU&station=ANMO&components=Z&format=miniseed"
           "&eventid=GCMT:C201511181831A").plot()

figure_1