GeoNet / help

An issues repo for technical help questions.
6 stars 3 forks source link

FDSN event query returning 204 #6

Closed calum-chamberlain closed 8 years ago

calum-chamberlain commented 8 years ago

Using obspy.clients.fdsn.Client.get_events with GeoNet attempts to query the GeoNet FSDN site with URLs like this: http://service.geonet.org.nz/fdsnws/event/1/query?eventid=2016p008122. These generate a 204 error message: FDSNException: No data available for request. Which arises from here.

The same error is generated for other queries, I have tried start and end time flags, and locations.

Currently for known event id's my work around is:

from obspy.clients.fdsn import Client

publicIDs=['2016p008122', '2016p008353', '2016p008155', '2016p008194']
client = Client("GEONET")

catalog = Catalog()
for publicID in publicIDs:
    data_stream = client._download('http://quakeml.geonet.org.nz/' +
                                   'quakeml/1.2/' + publicID)
    data_stream.seek(0, 0)
    catalog += read_events(data_stream, format="quakeml")
    data_stream.close()

Which is not ideal and only works for known eventID numbers.

Not sure of a fix!

kfenaugh commented 8 years ago

Calum,

As documented on this page http://info.geonet.org.nz/x/CQSD we have not implemented the 'event' service at this time. Thanks for the interest in having it as part of the suite. I'll look into where it could fit into our data services setup.

Kevin

calum-chamberlain commented 8 years ago

Thanks for that Kevin, sorry I hadn't seen that. It would be a really useful addition and if there is anything I can do to help I would be happy to.