From 1c32d364307b22c7ab836cbc8e8b7ac7c7262ded Mon Sep 17 00:00:00 2001 From: Mustafa Comoglu Date: Fri, 17 Apr 2026 08:33:08 +1000 Subject: [PATCH] [scautoloc] Export secondaryAzimuthalGap in OriginQuality scautoloc computes the secondary azimuthal gap internally via determineAzimuthalGaps() and uses it as a rejection criterion, but the value was not written into OriginQuality when exporting the origin to SeisComP. This caused scautoloc origins to always have secondaryAzimuthalGap unset, unlike stdloc and scrtdd which both populate it. Call determineAzimuthalGaps() in convertToSC() and set secondaryAzimuthalGap on the exported origin. --- apps/processing/scautoloc/sc3adapters.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/processing/scautoloc/sc3adapters.cpp b/apps/processing/scautoloc/sc3adapters.cpp index 954e9605a..63e1c9f8b 100644 --- a/apps/processing/scautoloc/sc3adapters.cpp +++ b/apps/processing/scautoloc/sc3adapters.cpp @@ -144,7 +144,15 @@ Seiscomp::DataModel::Origin *convertToSC(const Autoloc::Origin* origin, bool all origin->geoProperties(minDist, maxDist, aziGap); oq.setMinimumDistance(minDist); oq.setMaximumDistance(maxDist); - oq.setAzimuthalGap(aziGap); + + double primaryGap, secondaryGap; + if ( determineAzimuthalGaps(origin, &primaryGap, &secondaryGap) ) { + oq.setAzimuthalGap(primaryGap); + oq.setSecondaryAzimuthalGap(secondaryGap); + } + else { + oq.setAzimuthalGap(aziGap); + } scorigin->setQuality(oq);