Package Array

Class SnapshotGeometry

java.lang.Object
Array.SnapshotGeometry

public class SnapshotGeometry extends Object
Holder of array geometry for a group of data units and an instant in time. This class has primarily been developed to support the group 3D localiser functions.
Author:
dg50
  • Constructor Details

    • SnapshotGeometry

      public SnapshotGeometry(PamArray currentArray, long timeMilliseconds, int[] streamerList, int[] hydrophoneList, GpsData referenceGPS, PamVector geometricCentre, PamVector[] geometry, PamVector[] streamerErrors, PamVector[] hydrophoneErrors)
      Parameters:
      currentArray - Hydrophone array
      timeMilliseconds - time this snap shot was created
      hydrophoneList - list of hydrophones
      referenceGPS - reference position and orientation
      geometricCentre - geometric centre (average values of geometry)
      geometry - array geometry in metres relative to referenceGPS.
      channelList - list of data channels
  • Method Details

    • getShape

      public int getShape()
    • getAbsPhoneLatLong

      public LatLong getAbsPhoneLatLong(int iPhone)
      Get the abs position of a specified hydrophone.
      Parameters:
      iPhone -
      Returns:
    • getArrayAxes

      public PamVector[] getArrayAxes()
      Get the array axes. For a linear array this is a single vector.
      Returns:
    • getArrayAngles

      public double[] getArrayAngles()
      Get the array axes as two angles, clockwise from North and elevation.
      Returns:
      array angles (1 element vector)
    • getTimeMilliseconds

      public long getTimeMilliseconds()
      Returns:
      the timeMilliseconds
    • setTimeMilliseconds

      public void setTimeMilliseconds(long timeMilliseconds)
      Parameters:
      timeMilliseconds - the timeMilliseconds to set
    • getReferenceGPS

      public GpsData getReferenceGPS()
      Returns:
      the referenceGPS
    • setReferenceGPS

      public void setReferenceGPS(GpsData referenceGPS)
      Parameters:
      referenceGPS - the referenceGPS to set
    • getCentreGPS

      public GpsData getCentreGPS()
      Get the central GPS position for used hydrophones.
      Returns:
      central position of used hydrophones.
    • getGeometry

      public PamVector[] getGeometry()
      Returns:
      the geometry in metres relative to the referenceGPS
    • getMaxSeparation

      public double getMaxSeparation()
      Get the maximum separation between any two hydrophones.
      Returns:
      max separation between any pair of hydrophones
    • getPairDistance

      public double getPairDistance(int h1, int h2)
      Get the distance between a hydrophone pair.
      Parameters:
      h1 -
      h2 -
      Returns:
    • setGeometry

      public void setGeometry(PamVector[] geometry)
      Parameters:
      geometry - the geometry in metres relative to the referenceGPS
    • getHydrophoneList

      public int[] getHydrophoneList()
      Returns:
      the hydrophoneList
    • setHydrophoneList

      public void setHydrophoneList(int[] hydrophoneList)
      Parameters:
      hydrophoneList - the hydrophoneList to set
    • getGeometricCentre

      public PamVector getGeometricCentre()
      Returns:
      the geometricCentre
    • getCurrentArray

      public PamArray getCurrentArray()
      Returns:
      the currentArray
    • getStreamerList

      public int[] getStreamerList()
      Returns:
      the streamerList
    • getStreamerErrors

      public PamVector[] getStreamerErrors()
      Returns:
      the streamerErrors
    • getHydrophoneErrors

      public PamVector[] getHydrophoneErrors()
      Returns:
      the hydrophoneErrors