[scautoloc] Export secondaryAzimuthalGap in OriginQuality#116
[scautoloc] Export secondaryAzimuthalGap in OriginQuality#116comoglu wants to merge 1 commit intoSeisComP:mainfrom
Conversation
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.
9130cc4 to
1c32d36
Compare
|
Now the azimuthal gap will be computed two times in |
|
This is the exact idea, to get rid of redundant code by using the |
|
So this PR is a draft and not about to be merged? |
|
One thing I'd like to understand better: in the autoloc context, are DataModel::Pick objects registered in the global public object store at the point convertToSC() is called? compile() relies on Pick::Find() for station counts, and I noticed the Pick::Find() block in convertFromSC() was commented out with a note (german) . Wondering if that affects the station count fields if we go the compile() route. |
|
I converted the PR to Draft until I understand that part better. |
Problem
scautoloc computes the secondary azimuthal gap internally via
determineAzimuthalGaps()and uses it as a rejection criterion, but the value was never written intoOriginQualitywhen exporting the origin to SeisComP. As a result, scautoloc origins always havesecondaryAzimuthalGapunset — unlike stdloc and scrtdd which both populate it.This was confirmed as an oversight by @jsaul:
Fix
Call
determineAzimuthalGaps()inconvertToSC()(sc3adapters.cpp) and setsecondaryAzimuthalGapon the exportedOriginQuality. The function was already available and correct — it just wasn't called at export time.Related
Companion PR in SeisComP/common adds a standalone
computeAzimuthalGaps(azimuths, primary*, secondary*)library function so the algorithm has a single home, as @jsaul suggested: SeisComP/common#193