pisces.client#

class pisces.client.Client(**kwargs)[source]#

Bases: object

Basic database request client.

Methods

get_arrivals([stations, channels, atime, ...])

Request database arrivals.

get_events([region, deg, km, swath, mag, ...])

Get Origin table rows.

get_stations([stations, channels, nets, ...])

Get Site table rows.

get_waveforms([station, channel, starttime, ...])

Get waveforms.

load_tables(**tables)

Load core tables.

get_arrivals(stations=None, channels=None, atime=None, phases=None, arids=None, orids=None, auth=None)[source]#

Request database arrivals.

For further explanation, see: pisces.request.get_arrivals

get_events(region=None, deg=None, km=None, swath=None, mag=None, depth=None, etype=None, orids=None, evids=None, prefor=False)[source]#

Get Origin table rows.

For further explanation, see: pisces.request.get_events

get_stations(stations=None, channels=None, nets=None, loc=None, region=None, deg=None, km=None, swath=None, stime=None)[source]#

Get Site table rows.

For further explanation, see: pisces.request.get_stations

get_waveforms(station=None, channel=None, starttime=None, endtime=None, wfids=None)[source]#

Get waveforms.

For further explanation, see: pisces.request.get_waveforms

load_tables(**tables)[source]#

Load core tables.

Tables are given as key=value pairs as in: load_tables(wfdisc=’global.wfdisc_raw’, origin=’location.origin’)

Raises:
sqlalchemy.exc.NoSuchTableError

Table doesn’t exist.