Channel

class mss_dataserver.geometry.inventory.Channel(name, description=None, id=None, agency_uri=None, author_uri=None, creation_time=None, parent_station=None)[source]

Bases: object

A channel of a station.

Parameters
  • name (str) – The name of the channel.

  • description (str) – The description of the channel.

  • id (int) – The database id of the channel.

  • author_uri (string) – The author_uri of the instance.

  • agency_uri (String) – The agency_uri of the instance.

  • creation_time (str or obspy.UTCDateTime) – The creation time of the instance. A string that can be parsed by obspy.UTCDateTime or a obspy.UTCDateTime instance

  • parent_station (Station) – The station to which the channel is assigned to.

Variables

streams (list of RecorderStream) – The recorder streams assigned to a channel.

Properties

assigned_recorders

list of str: The unique serial numbers of the assigned recorders.

nslc

tuple of str: The Network:Station:Location:Channel code.

nslc_string

str: The string representation of the Network:Station:Location:Channel code.

parent_inventory

Inventory: The inventory containing the channel.

Methods

__init__(name[, description, id, …])

Initialize the instance

add_stream(serial, model, producer, name, …)

Add a stream to the channel.

as_dict([style])

Get a dictionary representation of the instance.

from_dict(d)

Create a channel from a dictionary.

get_stream([start_time, end_time])

Get a stream from the channel.

merge(merge_channel)

Merge a channel with the existing one.

remove_stream([start_time, end_time])

Remove a stream from the channel.

remove_stream_by_instance(stream_timebox)

Remove a stream timebox.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.inventory.Channel