Skip to content

Commit

Permalink
TST: Estimate MRelative based on NetworkMagnitude
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Armbruster authored and damb committed Aug 23, 2022
1 parent c6e0daf commit 0b8de4a
Show file tree
Hide file tree
Showing 8 changed files with 181 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/cc/test/data/integration/dataset.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ processing/changing-fsamp/single-detector-single-stream-0004|templates.json|inve
magnitude/MRelative/single-detector-single-stream-0000|templates.json|inventory.scml|catalog.scml|data.mseed|config.scml||2019-11-05T05:10:00|expected.scml|
magnitude/MRelative/single-detector-single-stream-0001|templates.json|inventory.scml|catalog.scml|data.mseed|config.scml||2019-11-05T05:10:00|expected.scml|
magnitude/MRelative/single-detector-single-stream-0002|templates.json|inventory.scml|catalog.scml|data.mseed|config.scml||2019-11-05T05:10:00|expected.scml|
magnitude/MRelative/single-detector-single-stream-0003|templates.json|inventory.scml|catalog.scml|data.mseed|config.scml||2019-11-05T05:10:00|expected.scml|
magnitude/MRelative/single-detector-multi-stream-0000|templates.json|inventory.scml|catalog.scml|data.mseed|config.scml||2019-11-05T05:10:00|expected.scml|
magnitude/MRelative/single-detector-multi-stream-0001|templates.json|inventory.scml|catalog.scml|data.mseed|config.scml||2019-11-05T05:10:00|expected.scml|
magnitude/MRelative/single-detector-multi-stream-0002|templates.json|inventory.scml|catalog.scml|data.mseed|config.scml||2020-10-25T20:30:00|expected.scml|
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<seiscomp xmlns="http://geofon.gfz-potsdam.de/ns/seiscomp3-schema/0.12" version="0.12">
<Config>
<parameterSet publicID="ParameterSet/trunk/Station/8D/RAW2/scdetect-cc" created="2022-01-07T14:32:11.67833Z">
<moduleID>Config/trunk</moduleID>
<parameter publicID="Parameter/20220107143211.678366.5">
<name>sensorLocation._HH.amplitudes.amplitudes</name>
<value>MRelative</value>
</parameter>
<parameter publicID="Parameter/20220107143211.678461.6">
<name>sensorLocation._HH.magnitudes.magnitudes</name>
<value>MRelative</value>
</parameter>
<parameter publicID="Parameter/20220107143211.678462.6">
<name>sensorLocation._HH.magnitudes.MRelative.useNetworkMagnitude</name>
<value>true</value>
</parameter>
<parameter publicID="Parameter/20220107143211.678482.7">
<name>sensorLocation._HH.channelCode</name>
<value>HH</value>
</parameter>
<parameter publicID="Parameter/20220107143211.678495.8">
<name>sensorLocationProfiles</name>
<value>_HH</value>
</parameter>
</parameterSet>
<module publicID="Config/trunk" name="trunk" enabled="true">
<station publicID="Config/trunk/8D/RAW2" networkCode="8D" stationCode="RAW2" enabled="true">
<creationInfo>
<agencyID>FOO_AGENCY</agencyID>
<author>bindings2cfg</author>
<creationTime>2022-01-07T14:32:11.678105Z</creationTime>
</creationInfo>
<setup name="scdetect-cc" enabled="true">
<parameterSetID>ParameterSet/trunk/Station/8D/RAW2/scdetect-cc</parameterSetID>
</setup>
</station>
</module>
</Config>
</seiscomp>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<seiscomp xmlns="http://geofon.gfz-potsdam.de/ns/seiscomp3-schema/0.12" version="0.12">
<EventParameters>
<pick publicID="Pick/20220719123536.352494.1071">
<time>
<value>2019-11-05T05:23:49.09993Z</value>
</time>
<waveformID networkCode="8D" stationCode="RAW2" channelCode="HH"/>
<phaseHint>Pg</phaseHint>
<evaluationMode>automatic</evaluationMode>
<comment>
<text>2019-11-05T04:23:48.595Z|2019-11-05T04:23:51.1Z|2019-11-05T04:23:49.099929Z</text>
<id>scdetectTemplateWaveformTimeInfo</id>
</comment>
</pick>
<amplitude publicID="Amplitude/20220719123536.355737.1072">
<type>MRelative</type>
<amplitude>
<value>1</value>
</amplitude>
<timeWindow>
<reference>2019-11-05T05:23:48.595001Z</reference>
<begin>0</begin>
<end>2.505</end>
</timeWindow>
<waveformID networkCode="8D" stationCode="RAW2" channelCode="HH"/>
<creationInfo>
<agencyID>TEST</agencyID>
<author>scdetect-cc@seiscomp-fedora34</author>
<creationTime>2022-07-19T12:35:36.355728Z</creationTime>
</creationInfo>
<comment>
<text>detector-01</text>
<id>scdetectDetectorId</id>
</comment>
<comment>
<text>Pick/20220719123536.352494.1071</text>
<id>scdetectAmplitudePicks</id>
</comment>
<comment>
<text>8D.RAW2..HHZ</text>
<id>scdetectAmplitudeStreams</id>
</comment>
</amplitude>
<origin publicID="Origin/20220719123536.352277.1070">
<time>
<value>2019-11-05T05:23:47.640489Z</value>
</time>
<latitude>
<value>46.32480762</value>
</latitude>
<longitude>
<value>7.36023502</value>
</longitude>
<depth>
<value>4.813476562</value>
</depth>
<epicenterFixed>true</epicenterFixed>
<methodID>DETECT</methodID>
<quality>
<associatedPhaseCount>1</associatedPhaseCount>
<usedPhaseCount>1</usedPhaseCount>
<associatedStationCount>1</associatedStationCount>
<usedStationCount>1</usedStationCount>
<standardError>0</standardError>
<maximumDistance>0.03223286148</maximumDistance>
<minimumDistance>0.03223286148</minimumDistance>
<medianDistance>0.03223286148</medianDistance>
</quality>
<evaluationMode>automatic</evaluationMode>
<creationInfo>
<agencyID>TEST</agencyID>
<author>scdetect-cc@seiscomp-fedora34</author>
<creationTime>2022-07-19T12:35:36.352239Z</creationTime>
</creationInfo>
<comment>
<text>detector-01</text>
<id>scdetectDetectorId</id>
</comment>
<comment>
<text>1.000000</text>
<id>scdetectResultCCC</id>
</comment>
<arrival>
<pickID>Pick/20220719123536.352494.1071</pickID>
<phase>Pg</phase>
<weight>1.037711232</weight>
<creationInfo>
<agencyID>TEST</agencyID>
<author>scdetect-cc@seiscomp-fedora34</author>
<creationTime>2022-07-19T12:35:36.352239Z</creationTime>
</creationInfo>
</arrival>
<stationMagnitude publicID="StationMagnitude/20220719123536.35603.1073">
<magnitude>
<value>1.19054779</value>
</magnitude>
<type>MRelative</type>
<amplitudeID>Amplitude/20220719123536.355737.1072</amplitudeID>
<waveformID networkCode="8D" stationCode="RAW2" channelCode="HH"/>
</stationMagnitude>
<magnitude publicID="Magnitude/20220719123536.356151.1074">
<magnitude>
<value>1.19054779</value>
</magnitude>
<type>MRelative</type>
<stationCount>1</stationCount>
<stationMagnitudeContribution>
<stationMagnitudeID>StationMagnitude/20220719123536.35603.1073</stationMagnitudeID>
<weight>1</weight>
</stationMagnitudeContribution>
</magnitude>
</origin>
</EventParameters>
</seiscomp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<seiscomp xmlns="http://geofon.gfz-potsdam.de/ns/seiscomp3-schema/0.11" version="0.11"><Inventory><sensor publicID="smi:ch.ethz.sed/Sensor/sts2.5.20161013112408.3633" name="streckeisen.STS2.5.3633" response="smi:ch.ethz.sed/ResponsePAZ/sts2.5.20161013112408.3633"><model>STS2.5</model><manufacturer>Streckeisen</manufacturer><unit>M/S</unit></sensor><datalogger publicID="smi:ch.ethz.sed/Datalogger/centaur.20161013112408.55634" name="centaur.200.off.55634"><digitizerModel>Centaur</digitizerModel><digitizerManufacturer>Nanometrics</digitizerManufacturer><recorderModel>Centaur</recorderModel><recorderManufacturer>Nanometrics</recorderManufacturer><gain>400000</gain><maxClockDrift>0</maxClockDrift><decimation sampleRateNumerator="200" sampleRateDenominator="1"><digitalFilterChain>smi:ch.ethz.sed/ResponseFIR/centaur.200.off.20161013112408.141401.55634.3 smi:ch.ethz.sed/ResponseFIR/centaur.200.off.20161013112408.142297.55634.4 smi:ch.ethz.sed/ResponseFIR/centaur.200.off.20161013112408.142717.55634.5</digitalFilterChain></decimation></datalogger><responsePAZ publicID="smi:ch.ethz.sed/ResponsePAZ/sts2.5.20161013112408.3633" name="PAZ.STS2.5.120.1500.3633"><type>A</type><gain>1500</gain><gainFrequency>0.05</gainFrequency><normalizationFactor>0.000157286</normalizationFactor><normalizationFrequency>0.05</normalizationFrequency><numberOfZeros>8</numberOfZeros><numberOfPoles>7</numberOfPoles><zeros>(0,0) (0,0) (-15.708,0) (-15.708,0) (-630.203,0) (-556.062,-936.195) (-556.062,936.195) (-973.894,0)</zeros><poles>(-0.03702,0.03702) (-0.03702,-0.03702) (-16.041,0) (-16.041,0) (-327.354,-74.1416) (-327.354,74.1416) (-973.894,0)</poles></responsePAZ><responseFIR publicID="smi:ch.ethz.sed/ResponseFIR/centaur.200.off.20161013112408.141401.55634.3" name="FIR.centaur.200.off.55634.stage_3"><gain>1</gain><decimationFactor>15</decimationFactor><delay>0</delay><correction>0</correction><numberOfCoefficients>87</numberOfCoefficients><symmetry>B</symmetry><coefficients>-4.36251e-10 -1.80638e-09 -5.57039e-09 -1.43857e-08 -3.29564e-08 -6.9106e-08 -1.35197e-07 -2.49921e-07 -4.40432e-07 -7.44758e-07 -1.21435e-06 -1.91648e-06 -2.93628e-06 -4.37772e-06 -6.36325e-06 -9.03122e-06 -1.25305e-05 -1.70116e-05 -2.26134e-05 -2.94454e-05 -3.75653e-05 -4.69514e-05 -5.7471e-05 -6.88472e-05 -8.06233e-05 -9.21305e-05 -0.00010246 -0.000110448 -0.000114666 -0.000113442 -0.000104896 -8.70058e-05 -5.77047e-05 -1.50087e-05 4.2822e-05 0.000117095 0.000208472 0.000316746 0.000440611 0.00057745 0.000723153 0.000871981 0.00101651 0.00114768 0.00125488 0.00132628 0.0013492 0.00131066 0.00119801 0.000999781 0.000706519 0.000311744 -0.00018709 -0.000787669 -0.00148199 -0.00225565 -0.00308741 -0.00394894 -0.00480495 -0.00561366 -0.0063276 -0.00689485 -0.00726063 -0.0073692 -0.00716606 -0.00660035 -0.00562732 -0.00421081 -0.0023256 4.04992e-05 0.00288491 0.00618906 0.00991772 0.014019 0.0184249 0.023053 0.0278081 0.0325852 0.0372727 0.0417557 0.0459205 0.0496579 0.0528678 0.0554623 0.0573694 0.0585357 0.0589281</coefficients></responseFIR><responseFIR publicID="smi:ch.ethz.sed/ResponseFIR/centaur.200.off.20161013112408.142297.55634.4" name="FIR.centaur.200.off.55634.stage_4"><gain>1</gain><decimationFactor>5</decimationFactor><delay>607.74</delay><correction>607.74</correction><numberOfCoefficients>48</numberOfCoefficients><symmetry>B</symmetry><coefficients>6.15343e-09 3.53052e-08 1.08986e-07 2.14286e-07 2.2567e-07 -1.68219e-07 -1.41445e-06 -3.77091e-06 -6.66079e-06 -7.96281e-06 -3.89963e-06 9.60392e-06 3.36284e-05 6.18314e-05 7.74814e-05 5.58158e-05 -2.52052e-05 -0.000166561 -0.000329415 -0.000428927 -0.000354311 -2.02975e-05 0.000562296 0.00122953 0.00166454 0.00148856 0.000439482 -0.00141854 -0.00355801 -0.00503543 -0.0047839 -0.00210515 0.00281102 0.00859469 0.0128681 0.0129735 0.00711022 -0.0045056 -0.0189689 -0.0309348 -0.0339263 -0.0224213 0.00594329 0.0488783 0.0993351 0.147012 0.181112 0.193488</coefficients></responseFIR><responseFIR publicID="smi:ch.ethz.sed/ResponseFIR/centaur.200.off.20161013112408.142717.55634.5" name="FIR.centaur.200.off.55634.stage_5"><gain>1</gain><decimationFactor>2</decimationFactor><delay>121.548</delay><correction>121.548</correction><numberOfCoefficients>112</numberOfCoefficients><symmetry>B</symmetry><coefficients>-2.4877e-10 4.73744e-09 1.24032e-08 2.18423e-09 -2.9735e-08 -2.7741e-08 4.8235e-08 9.04852e-08 -4.3772e-08 -2.02925e-07 -2.93251e-08 3.57677e-07 2.38076e-07 -5.05054e-07 -6.56661e-07 5.29514e-07 1.33303e-06 -2.35391e-07 -2.23456e-06 -6.43189e-07 3.17885e-06 2.39189e-06 -3.76643e-06 -5.21313e-06 3.34388e-06 9.06984e-06 -1.0342e-06 -1.34948e-05 -4.1282e-06 1.74081e-05 1.29325e-05 -1.90112e-05 -2.55982e-05 1.58385e-05 4.12985e-05 -5.05136e-06 -5.76943e-05 -1.59734e-05 7.06232e-05 4.87621e-05 -7.41183e-05 -9.2656e-05 6.09281e-05 0.000143704 -2.36571e-05 -0.000193818 -4.34607e-05 0.000230529 0.0001423 -0.000237697 -0.00026842 0.00019742 0.000408986 -9.32264e-05 -0.000541667 -8.56506e-05 0.000635146 0.000339424 -0.000651794 -0.000653162 0.000552734 0.000993533 -0.000305133 -0.00130802 -0.000108987 0.00152764 0.000683646 -0.00157381 -0.00138119 0.00136932 0.00212784 -0.000852739 -0.00281433 -5.43598e-06 0.00330293 0.00118724 -0.00344149 -0.00261502 0.00308386 0.00414554 -0.00211493 -0.00557267 0.000477543 0.00664017 0.00180254 -0.00706464 -0.00459738 0.00656694 0.0076669 -0.00490895 -0.0106603 0.00193106 0.0131289 0.00241487 -0.0145476 -0.00804248 0.0143373 0.0147221 -0.0118736 -0.0220889 0.00645106 0.0296694 0.00287172 -0.0369222 -0.0177763 0.0432915 0.0424836 -0.0482648 -0.0928087 0.0514286 0.313777 0.447486</coefficients></responseFIR><network publicID="smi:ch.ethz.sed/sc3seattle/Network/20140702145041.037804.2" code="8D"><start>1980-01-01T00:00:00.0000Z</start><description>Temporary deployments in Switzerland associated with aftershocks, sequences</description><institutions>Swiss Seismological Service</institutions><region>Switzerland</region><type>BB,SP,SM</type><netClass>t</netClass><archive>SED</archive><restricted>false</restricted><shared>false</shared><remark>Temporary deployments in Switzerland associated with aftershocks, e.g. Vallorcine (can be inside or outside Switzerland) and induced seismicity</remark><station publicID="smi:ch.ethz.sed/Station/20161013112408.55491" code="RAW2"><start>2016-10-12T12:00:00.0000Z</start><description>Sanetsch, VS</description><latitude>46.3148</latitude><longitude>7.31587</longitude><elevation>2007</elevation><place>Sanetsch</place><country>Switzerland</country><restricted>false</restricted><shared>true</shared><sensorLocation publicID="smi:ch.ethz.sed/SensorLocation/20161013112408.55491" code=""><start>2016-10-12T12:00:00.0000Z</start><latitude>46.3148</latitude><longitude>7.31587</longitude><elevation>2007</elevation><stream publicID="Stream/20161013095304.177083276" code="HHZ" datalogger="smi:ch.ethz.sed/Datalogger/centaur.20161013112408.55634" sensor="smi:ch.ethz.sed/Sensor/sts2.5.20161013112408.3633"><start>2016-10-12T12:00:00.0000Z</start><dataloggerSerialNumber>001225</dataloggerSerialNumber><dataloggerChannel>0</dataloggerChannel><sensorSerialNumber>120339</sensorSerialNumber><sensorChannel>0</sensorChannel><sampleRateNumerator>200</sampleRateNumerator><sampleRateDenominator>1</sampleRateDenominator><depth>0</depth><azimuth>0</azimuth><dip>-90</dip><gain>599998000</gain><gainFrequency>1</gainFrequency><gainUnit>M/S</gainUnit><format>Steim1</format><flags>G</flags><restricted>false</restricted><shared>true</shared></stream></sensorLocation></station></network></Inventory></seiscomp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[{
"detectorId": "detector-01",
"createArrivals": true,
"createTemplateArrivals": false,
"gapInterpolation": false,
"triggerOnThreshold": 0.98,
"originId": "smi:ch.ethz.sed/sc3a/origin/NLL.20191105125505.255283.1897990",
"filter": "",
"initTime": 10,
"createAmplitudes": true,
"createMagnitudes": true,
"streams": [
{
"templateId": "template-01",
"waveformId": "8D.RAW2..HHZ",
"templatePhase": "Pg",
"templateWaveformStart": -0.5,
"templateWaveformEnd": 2
}
]
}]

0 comments on commit 0b8de4a

Please sign in to comment.