Created
February 22, 2016 22:37
-
-
Save calum-chamberlain/dfb2fa3a4cebff00729f to your computer and use it in GitHub Desktop.
Current work-around for GeoNet event query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment