-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate picks in events from FDSN- (fixed from Post May2023 onward) #105
Comments
Hello @calum-chamberlain With regards to fixing this the answer is yes and easy, ..although the "process" to perform this To me this is an example of event level catalogue data curation (FYI @elidana @JonoHanson ) that should be added into the to do list. NB:Please keep on postingevents there to keep on building the case. thanks a lot |
This isn't rare at all in my experience. Consider the example below, which assumes that duplicate pick resource ids represent duplicated picks without checking other information explicitly: from obspy.clients.fdsn import Client
from obspy import UTCDateTime
from collections import Counter
client = Client("GEONET")
cat = client.get_events(starttime=UTCDateTime(2022, 1, 1), endtime=UTCDateTime(2022, 2, 1))
duplicate_pick_count = 0
events_with_duplicates = 0
for ev in cat:
pid_counts = Counter(p.resource_id for p in ev.picks)
duplicate_picks = [pid for pid, count in pid_counts.items() if count > 1]
duplicate_pick_count += len(duplicate_picks)
if len(duplicate_picks):
events_with_duplicates += 1
print(f"From {len(cat)} events, {events_with_duplicates} had duplicate picks.")
print(f"Total duplicate picks: {duplicate_pick_count}") For this month there were 2,101 events returned, of which 1,877 had duplicate picks - there were 15,395 duplicate pick ids. Note that this is not all picks, it isn't obvious from my end which picks are duplicated. I haven't checked extensively whether it is only auto-picks that are duplicated, but so far I haven't seen any manual picks duplicated. |
@calum-chamberlain thanks a lot for making the case ... 2- Indeed 2,101 events returned, of which 1,877 had duplicate picks looks definitely more than i was expecting .. see above!! so... e.g
"Arrival" for BFZ is unique in both xml files First conclusion/assumption: Actions:
FYI @elidana - this is looking like an fdsn event xml service question to address (to me) |
This may relate to thhis : https://github.com/GeoNet/fdsn/tree/main/cmd/fdsn-quake-consumer |
@calum-chamberlain thanks a lot from my end as well for raising this. |
@elidana I am pretty sure this is a recent thing, probably in the one-month timeframe, but I'm no certain. I haven't had to cope with it until this year at least. |
thanks @calum-chamberlain , that's very useful to know! |
@salichon @elidana You can try install
where the Have tested the command above and got the same result (having "duplicated pick"). I guess we can file a bug to SeisCompP3 but seems need some elaboration about the event so probably not what I can do? |
super @junghao thanks for that |
Thanks @salichon . Based on this PR SeisComP/common@132fc95#diff-e60a95631541fd9f0ff3a585e41fc7d493aec710d6f75c3e0edc3d7891d5ff71R262 , not sure if the comment ( |
@junghao I confirm the conversion prioducing the same output thanks the event 2022p pick id output for 2022p788472 Duplication as shown in that screenshot This shows a "sort of" random duplication PickID files qml1.txt for quakeml and scml1.txt for original are attached |
Can we confirm that s a xsl template bug ? |
Also used |
@junghao
output is correct from the seiscompml conversion
See attached files so questions:
Ref source: https://github.com/SeisComP/common/tree/master/libs/xml Now provided some additional context given the questions above
|
Hi @junghao - No feed back from Gempa/users through the community channel yet
I ll confirm with Stephan et al. to inform this and get a solid answer |
@calum-chamberlain @junghao
|
Now this will rely on acceptance and deployment of the
|
@calum-chamberlain @junghao This style sheet xml fix requires to be propagated to GeoNet services
|
@salichon They have sc3ml_0.12 files, do we want to add them to our FDSN as well? |
At the moment we re about to go 4 and expectedly pretty quickly to the above versions i reckon @junghao |
Kia Ora @junghao
Verdict: Dev looks good |
@calum-chamberlain Kia Ora
Please keep us informed if this is going okay for you - and/or any feed back Upon happiness level reached we ll close that ticket |
enough time has passed, and looks like the issue is now fixed. So I think that happiness level is now reached closing this, @salichon please reopen if that's not the case! |
@elidana this is not resolved entirely |
Hi all,
I wondered if there was a good reason for duplicate picks appearing in events downloaded from the FDSN service? For instance event 2022p788472 has duplicate picks for multiple stations including duplicate P-picks for BFZ. There are two P-picks sharing the same pick id (
smi:nz.org.geonet/20221019.173832.28-AIC-NZ.BFZ.10.HHZ
) that, to my eyes, have all the same information.If there isn't a good reason, would it be possible to fix this?
Thanks,
Calum.
The text was updated successfully, but these errors were encountered: