pyrocko.model.station

Simple representation of a seismic station (Pyrocko classic).

Note

An improved data model for seismic stations is available in pyrocko.squirrel.model. This module will stay available for backward compatibility. Conversion from Squirrel-based to Pyrocko classic can be achieved with pyrocko.squirrel.model.Station.get_pyrocko_station().

Functions

dump_stations(stations, filename)

Write stations file.

dump_stations_yaml(stations, filename)

Write stations file in YAML format.

load_stations(filename[, format])

Read stations file.

Classes

Channel(name[, azimuth, dip, gain])

Undocumented.

Station([network, station, location, lat, ...])

Undocumented.

class Channel(name, azimuth=None, dip=None, gain=1.0)[source]

Bases: Object

Undocumented.

name

str

azimuth

float, optional

dip

float, optional

gain

float, default: 1.0

class Station(network='', station='', location='', lat=0.0, lon=0.0, elevation=0.0, depth=0.0, north_shift=0.0, east_shift=0.0, name='', channels=None)[source]

Bases: Location

Undocumented.

network

str

station

str

location

str

name

str, default: ''

channels

list of Channel objects, default: []

dump_stations(stations, filename)[source]

Write stations file.

Parameters:
  • stations – list of Station objects

  • filename – filename as str

dump_stations_yaml(stations, filename)[source]

Write stations file in YAML format.

Parameters:
  • stations – list of Station objects

  • filename – filename as str

load_stations(filename, format='detect')[source]

Read stations file.

Parameters:

filename – filename

Returns:

list of Station objects