RecorderStream

class mss_dataserver.geometry.inventory.RecorderStream(name, label, agency_uri=None, author_uri=None, creation_time=None, parent_recorder=None)[source]

Bases: object

A digital stream of a data recorder.

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

  • label (str) – The label of the stream.

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

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

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

  • parent_recorder (Recorder) – The recorder containing the stream.

Variables

Properties

assigned_channels

list of Channel: The channels to which the stream is assigned to.

model

str: The model of the parent recorder.

parent_inventory

Inventory: The inventory containing the stream.

producer

str: The producer of the parent recorder.

serial

str: The serial number of the parent recorder.

Methods

__init__(name, label[, agency_uri, …])

Initialization of the instance.

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

Add a sensor component to the stream.

add_parameter(parameter_to_add)

Add a paramter to the recorder stream.

as_dict([style])

Get a dictionary representation of the instance.

get_component([start_time, end_time])

Get a component from the stream.

get_free_component_slot([pos])

Get a free time slot for a component.

get_free_parameter_slot([pos])

Get a free time slot for a parameter.

get_parameter([start_time, end_time])

Get parameter for a given timespan.

merge(merge_stream)

Merge a stream.

remove_component_by_instance(timebox)

Remove a component from the stream.

remove_parameter_by_instance(parameter)

Remove a parameter from the stream.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.inventory.RecorderStream