swiss-seismological-service / scdetect

A computationally efficient earthquake detection module for SeisComP
https://scdetect.readthedocs.io
GNU Affero General Public License v3.0
15 stars 6 forks source link

Detected picks have truncated channel codes (e.g. HH istead of HHZ) #137

Closed luca-s closed 1 year ago

luca-s commented 1 year ago

Original pick:

    <pick publicID="smi:....">
      <waveformID networkCode="8R" stationCode="V0117" channelCode="JDD"/>
    </pick>

Detected pick (see the difference JDD vs JD):

    <pick publicID="smi:....">
      <waveformID networkCode="8R" stationCode="V0117" channelCode="JD"/>
    </pick>

This behaviour is on purpose, see here and it is implemented only when a pick is detected. When a pick is derived from the template then the 3 characters of the channel code are fully used.

@mmesim do you know why?

luca-s commented 1 year ago

Ok I got it. This behaviour is required to avoid the creation of too many picks for a single station (one per component). If a detector has 3 components configured for a single station, then the detection would generate 3 picks without the current scdetect behaviour. Since only one pick is reported for 3 components, then the component part of the channel code is dropped. Makes sense. However in my case I only have one component per sensor, so I might need to improve the current behaviour so that it applies the logic when more then one component per station is configured in the detector.

mmesim commented 1 year ago

Good.

luca-s commented 1 year ago

I am closing this since I am not sure it is an important thing to change