add_component

RecorderStream.add_component(serial, model, producer, name, start_time, end_time)[source]

Add a sensor component to the stream.

The component with specified serial and name is searched in the parent inventory and if available, the sensor is added to the stream for the specified time-span.

Parameters
  • serial (str) – The serial number of the sensor which holds the component.

  • model (str) – The model of the sensor which holds the component.

  • producer (str) – The producer of the sensor which holds the component.

  • name (str) – The name of the component.

  • start_time (obspy.core.utcdatetime.UTCDateTime) – The time from which on the sensor has been operating at the station.

  • end_time (obspy.core.utcdatetime.UTCDateTime) – The time up to which the sensor has been operating at the station. “None” if the station is still running.

Returns

:class:`SensorComponent`

Return type

The sensor component added to the stream.