Skip to content

Suggestion to enable get_waveforms_bulk #4

Description

@calum-chamberlain

It would help to replace obspy client code if there was the full set of methods available. I have two suggestions to make that feasible:

  1. For methods not supported by the AWS system (e.g. get_stations and get_stations_bulk) these could be a simple redirect to the obspy FDSN method, e.g.:
...
    def get_stations(*args, **kwargs):
        from obspy.clients.fdsn import Client
        obspy_client = Client(self.config.fdsn_url)  # Note, would need change to the config file
        return obspy_client.get_stations(*args, **kwargs)
  1. Refactor get_waveforms into two functions, one that makes the set of all possible network, station, location and channel combinations, and one that takes those and downloads the data. This second function would then be referenced by a get_waveforms_bulk method. Doing this would make the most of threading, rather than making repeated calls to get_waveforms for different combinations of network, station, location and channel.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions