Class TargetMotionLocalisation

java.lang.Object
PamDetection.AbstractLocalisation
targetMotionOld.TargetMotionLocalisation

@Deprecated public class TargetMotionLocalisation extends AbstractLocalisation
Deprecated.
Reinstated Target motion add-in as used by the click detector. Hope one day still to replace this with Jamie's new one, but keep this one until Jamie's is working.
Author:
Doug Gillespie
  • Constructor Details

    • TargetMotionLocalisation

      public TargetMotionLocalisation(PamDataUnit pamDataUnit, GroupLocResult targetMotionResult)
      Deprecated.
  • Method Details

    • getLatLong

      public LatLong getLatLong(int iSide)
      Deprecated.
      Description copied from class: AbstractLocalisation
      Return the latlong for a location. There may be more than one of them if there is side to side ambiguity.
      Overrides:
      getLatLong in class AbstractLocalisation
      Parameters:
      iSide - 0, 1, 2, etc.
      Returns:
      LatLong information
    • getPerpendiculaError

      public double getPerpendiculaError(int iSide)
      Deprecated.
      Description copied from class: AbstractLocalisation
      Get the error perpendicular to the track line (in meters). Perpendicular error can be two things. It can be the error perpendicular to a track line or it can be the y error from a static system
      Overrides:
      getPerpendiculaError in class AbstractLocalisation
      Parameters:
      iSide - 0, 1, 2, etc.
      Returns:
      the error in metres.
    • addTargetMotionResult

      public int addTargetMotionResult(GroupLocResult targetMotionResult)
      Deprecated.
      Add a target motion result and return the number of results now in the localisation
      Parameters:
      targetMotionResult - New tm result
      Returns:
      number of results in localisaion.
    • getTargetMotionResult

      public GroupLocResult getTargetMotionResult(int iSide)
      Deprecated.
      Returns:
      the targetMotionResult
    • getOriginLatLong

      public GpsData getOriginLatLong()
      Deprecated.
      Overrides:
      getOriginLatLong in class AbstractLocalisation
      Returns:
      the latlong of the centre of the hydrophones associated with the channels used in this detection. If no channels are set, then it returns the GPS location for the time of the detection.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class AbstractLocalisation
    • getRange

      public double getRange(int iSide)
      Deprecated.
      Description copied from class: AbstractLocalisation
      Get the range for a specific side (where ambiguity exists)
      Overrides:
      getRange in class AbstractLocalisation
      Returns:
      range
    • getAngles

      public double[] getAngles()
      Deprecated.
      Overrides:
      getAngles in class AbstractLocalisation
      Returns:
      Angles to detection in radians. The number of angles will be 0, 1 or 2.

      ***************** CHANGES FROM AUGUST 2017 *******************
      Now oriented the 'globe' differently, so that the first angle can be between -Pi and +Pi or between 0 and 2Pi. The second angle is the elevation angle which is either up (+ve angles) or down (-ve angles) having a range of -Pi/2 to +Pi/2. This change will only affect data from volumetric arrays when the animal is at significant depth. Changes are being made to data from click and whistle detectors which used the older system to maintain compatibility.

      For a point array, null should be returned.

      For a line array a single angle is returned which is the angle relative to the first orientation vector with 0 being in line with the orientation vector (can be thought of as colatitude).

      For a planar or volumetric array, two angles should be returned, the first being the colongitude, the second being the latitude. Imagine a globe, with North vertical and 0 longitude pointing along the main axis of the array geometry.

    • bearingAmbiguity

      public boolean bearingAmbiguity()
      Deprecated.
      Overrides:
      bearingAmbiguity in class AbstractLocalisation
      Returns:
      true if the bearing is subject to a left right (or rotational) ambiguity about the reference bearing.
    • getRangeError

      public double getRangeError(int iSide)
      Deprecated.
      Description copied from class: AbstractLocalisation
      The error on the range. The range is A direct line from the origin to the localisation. It includes depth.
      Overrides:
      getRangeError in class AbstractLocalisation
      Returns:
      The error on the range estimation in meters.
    • getParallelError

      public double getParallelError(int iSide)
      Deprecated.
      Description copied from class: AbstractLocalisation
      Get the error parallel to the track line (in meters). Parallel error can be two things. It can be the error parallel to a track line or it can be the x error from a static system
      Overrides:
      getParallelError in class AbstractLocalisation
      Parameters:
      iSide - 0, 1, 2, etc.
      Returns:
      the error in metres.