Closed andreabono closed 1 year ago
A possible solution to avoid your cast error could be settig location code ="??" when empty
Fixed in acf76936eb6d41dfeb8531723da93a3d1bd873e5 Loc code will be "" if chan code exists, or null if chan code is also missing (aka a station-only pick). I think this is the best as it matches how my stationxml code handles missing or space-space loc codes.
Sorry for long delay, somehow missed this notification. Will push out a new release soon.
Ok great!! Thanks a lot!!
2.0.6 published, may take a little time to show up on maven central...
Great news!! Thanks a lot!! Andrea
Il Mar 1 Ago 2023, 18:18 Philip Crotwell @.***> ha scritto:
2.0.6 published, may take a little time to show up on maven central...
— Reply to this email directly, view it on GitHub https://github.com/crotwell/seisFile/issues/28#issuecomment-1660656890, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL663WQZMNXVMDYOIUNMUJDXTET53ANCNFSM6AAAAAAXTBAJYY . You are receiving this because you authored the thread.Message ID: @.***>
I'm trying to read some QuakeMLs using standard FDSN web services using this routine
I get an error in the "ERROR HERE" line while attempting to cast the resulting QuakeML to an edu.sc.seis.seisFile.fdsnws.quakeml.Event object.
The reason is that the resulting QuakeML has NO LOCATION CODE in the waveformID tag.
You can try to replicate the error calling:
http://geofon.gfz-potsdam.de:80/fdsnws/event/1/query?eventid=gfz2023injc&includeallmagnitudes=true&includeallorigins=false&includearrivals=true
and then trying to cast it to Event. If you look at the "pick" objects the have no location code.
It's great to get an Event object via that cast, so is there a chance to get this thing fixed or solved in any way?