uafgeotools / waveform_collection

Collect seismic/infrasound waveforms and metadata from IRIS/WATC/AVO servers, local miniSEED files, etc.
https://uaf-waveform-collection.readthedocs.io/
MIT License
13 stars 7 forks source link

Use inv.get_coordinates() #20

Closed liamtoney closed 4 years ago

liamtoney commented 4 years ago

This PR uses a more conventional way of querying ObsPy inventories for coordinates by direct lookup via tr.id rather than the clunky loop over all networks, stations, channels, etc. The modifications also allow for more informative warnings.