sensor1c

Sensor1C class definition.

class Sensor1C(amplitude, dt, x, y, z, nstacks=1, delay=0)

Bases: ActiveTimeSeries

Class for single component sensor objects.

__init__(amplitude, dt, x, y, z, nstacks=1, delay=0)

Initialize Sensor1C.

classmethod from_activetimeseries(activetimeseries, x, y, z)
classmethod from_sensor1c(sensor1c)

Create deep copy of an existing Sensor1C object.

classmethod from_trace(trace, read_header=True, map_x=<function Sensor1C.<lambda>>, map_y=<function Sensor1C.<lambda>>, nstacks=1, delay=0, x=0, y=0, z=0, format=None)

Create a Sensor1C object from a Trace object.

Parameters:
  • trace (Trace) – Trace object with attributes data and stats.delta.

  • read_header (bool) – Flag to indicate whether the data in the header of the file should be parsed, default is True indicating that the header data will be read.

  • map_x, map_y (function, optional) – Convert x and y coordinates using some function, default is not transformation. Can be useful for converting between coordinate systems.

  • nstacks (int, optional) – Number of stacks included in the present trace, default is 1 (i.e., no stacking). Ignored if read_header=True.

  • delay (float, optional) – Pre-trigger delay in seconds, default is 0 seconds. Ignored if read_header=True.

  • x, y, z (float, optional) – Receiver’s relative position in x, y, and z, default is zero for all components (i.e., the origin). Ignored if read_header=True.

  • format (str, optional) – Define file format, options include {“SEG2”, “SU”, “SEGY”}.

Returns:

Sensor1C – An initialized Sensor1C object.

Raises:

ValueError – If trace type cannot be identified.

property x
property y
property z