squirrel.client

class Source(**kwargs)[source]

Bases: pyrocko.guts.Object

Undocumented.

update_channel_inventory(squirrel, constraint)[source]

Let local inventory be up-to-date with remote for a given constraint.

update_event_inventory(squirrel, constraint)[source]

Let local inventory be up-to-date with remote for a given constraint.

update_waveform_promises(squirrel, constraint)[source]

Let local inventory be up-to-date with remote for a given constraint.

class Constraint(**kwargs)[source]

Bases: pyrocko.guts.Object

Undocumented.

tmin

builtins.float (pyrocko.guts.Timestamp), optional

tmax

builtins.float (pyrocko.guts.Timestamp), optional

contains(constraint)[source]

Check if the constraint completely includes a more restrictive one.

expand(constraint)[source]

Widen constraint to include another given constraint.

class FDSNSource(site, query_args=None, **kwargs)[source]

Bases: pyrocko.squirrel.client.base.Source

Squirrel source to access data through an FDSN web service.

site

str

query_args

dict of str objects, optional

expires

builtins.float (pyrocko.guts.Duration), optional

cache_path

str, optional

shared_waveforms

bool, default: True

user_credentials

tuple of 2 str objects, optional

auth_token

str, optional

auth_token_path

str, optional

update_channel_inventory(squirrel, constraint=None)[source]

Let local inventory be up-to-date with remote for a given constraint.

update_waveform_promises(squirrel, constraint)[source]

Let local inventory be up-to-date with remote for a given constraint.

class CatalogSource(catalog, query_args=None, **kwargs)[source]

Bases: pyrocko.squirrel.client.base.Source

Undocumented.

catalog

str

query_args

dict of str objects, optional

expires

builtins.float (pyrocko.guts.Duration), optional

anxious

builtins.float (pyrocko.guts.Duration), optional

cache_path

str, optional

update_event_inventory(squirrel, constraint=None)[source]

Let local inventory be up-to-date with remote for a given constraint.