class OperatorBase

This is a Python Abstract Base Class (ABC). You must derive the Operator class in each Code operator's Echoview Python source file from the OperatorBase class.

The eval method is an abstract method and is required in the Echoview Python source file.

The OperatorBase class is available from the Echoview Python package.

Methods

      __init__(self)
          Initialize self.


      eval(self, inputs: List[echoview.OperandInput])

          Calculates the output ping's samples from a list of
          OperandInputs that correspond to a window of measurements
          from each operand.

          The resulting output ping will have the same metadata (e.g.,
          ping time) as the matched ping from Operand 1. The returned
          NumPy array of samples must be of the same size as the
          matched ping from Operand 1.

          Parameters inputs: A list of OperandInputs.

          Returns A NumPy array of samples of the same size as the
          matched ping from Operand 1.


      result_type(self, input_types: List[echoview.MeasurementType])

          Specifies the data type of the Code operator variable.

          The default implementation uses the data type of Operand 1,
          unless Operand 1 is single beam wideband or pulse compressed.
          In which case, return the single beam equivalent. For
          example, single beam pulse compressed Sv is mapped to
          single beam Sv.

          Parameters input_types: The list of MeasurementTypes
          for each Operand.

          Returns The data type for the Code operator variable.

See also

About the Code operator
Using the Code operator