Class ECDImageRecord

All Implemented Interfaces:
Serializable, Cloneable, SonarImageRecordI, SonarRecordI

public class ECDImageRecord extends GeminiImageRecord implements Serializable
See Also:
  • Field Details

    • TYPE_SENSOR_RECORD

      public static final int TYPE_SENSOR_RECORD
      See Also:
    • TYPE_TARGET_RECORD

      public static final int TYPE_TARGET_RECORD
      See Also:
    • TYPE_TARGET_IMAGE_RECORD

      public static final int TYPE_TARGET_IMAGE_RECORD
      See Also:
    • TYPE_PING_TAIL_RECORD

      public static final int TYPE_PING_TAIL_RECORD
      See Also:
    • TYPE_ACOUSTIC_ZOOM_RECORD

      public static final int TYPE_ACOUSTIC_ZOOM_RECORD
      See Also:
    • VER_SENSOR_RECORD

      public static final int VER_SENSOR_RECORD
      See Also:
    • VER_TARGET_RECORD

      public static final int VER_TARGET_RECORD
      See Also:
    • VER_TARGET_IMAGE_RECORD

      public static final int VER_TARGET_IMAGE_RECORD
      See Also:
    • VER_PING_TAIL_RECORD

      public static final int VER_PING_TAIL_RECORD
      See Also:
    • VER_ACOUSTIC_ZOOM_RECORD

      public static final int VER_ACOUSTIC_ZOOM_RECORD
      See Also:
    • END_TAG

      public static final int END_TAG
      See Also:
    • HALF_END_TAG

      public static final int HALF_END_TAG
      See Also:
    • m_version

      public short m_version
    • m_pid

      public int m_pid
    • m_halfArr

      public int m_halfArr
    • m_txLength

      public int m_txLength
    • m_scanRate

      public int m_scanRate
    • m_sosAtXd

      public float m_sosAtXd
    • m_shading

      public short m_shading
    • m_mainGain

      public short m_mainGain
    • m_gainBlank

      public short m_gainBlank
    • m_adcInput

      public short m_adcInput
    • m_spreadGain

      public short m_spreadGain
    • m_absorbGain

      public short m_absorbGain
    • m_bfFocus

      public int m_bfFocus
    • m_bfGain

      public short m_bfGain
    • m_bfAperture

      public float m_bfAperture
    • m_txStart

      public short m_txStart
    • m_txLen

      public short m_txLen
    • m_txRadius

      public float m_txRadius
    • m_txRng

      public float m_txRng
    • m_modFreq

      public int m_modFreq
    • m_sosAtXd_2

      public float m_sosAtXd_2
    • m_rx1

      public short m_rx1
    • m_rx2

      public short m_rx2
    • m_tx1

      public short m_tx1
    • m_pingFlags

      public short m_pingFlags
    • m_rx1Arr

      public int m_rx1Arr
    • m_rx2Arr

      public int m_rx2Arr
    • m_tx1Arr

      public int m_tx1Arr
    • m_tx2Arr

      public int m_tx2Arr
    • m_tid

      public int m_tid
    • m_pid2

      public int m_pid2
    • m_txTime

      public double m_txTime
    • m_endTime

      public double m_endTime
    • m_txAngle

      public double m_txAngle
    • m_sosAvg

      public double m_sosAvg
    • mask

      public int mask
    • m_bpp

      public int m_bpp
    • m_nRngs

      public int m_nRngs
    • m_b0

      public int m_b0
    • m_b1

      public int m_b1
    • m_r0

      public int m_r0
    • m_r1

      public int m_r1
    • dual

      public int dual
    • m_nBrgs

      public int m_nBrgs
    • m_Brgs_2

      public int m_Brgs_2
    • cData

      public byte[] cData
    • sCount

      public int sCount
  • Constructor Details

    • ECDImageRecord

      public ECDImageRecord(String filePath, int filePos, int recordNumber)
  • Method Details

    • checkTypeVersion

      public static boolean checkTypeVersion(int type, int ver)
      check for consistency between record type and version numbers
      Parameters:
      type - record type
      ver - record version
      Returns:
      OK if recognised pair of values
    • getMaxRange

      public double getMaxRange()
      Get the maximum range using eq' provided by Phil.
      Specified by:
      getMaxRange in interface SonarImageRecordI
      Returns:
      Max range
    • getSonarType

      public int getSonarType()
      Description copied from interface: SonarImageRecordI
      Generic type of sonar
      Imager = 0
      Profiler = 1
      Specified by:
      getSonarType in interface SonarImageRecordI
      Returns:
      The type of sonar
    • getSonarPlatform

      public int getSonarPlatform()
      Description copied from interface: SonarRecordI
      Specific type of sonar
      720is=1
      720ik=2
      720im=3
      1200ik=4
      Specified by:
      getSonarPlatform in interface SonarRecordI
      Returns:
      type of sonar
    • getSonarIndex

      public int getSonarIndex()
      Specified by:
      getSonarIndex in interface SonarRecordI
      Returns:
      the index (0 if only one sonar, 0,1,etc for multiple sonars)
    • getDeviceId

      public int getDeviceId()
      Specified by:
      getDeviceId in interface SonarRecordI
      Returns:
      the sonar unique id,
    • setPingTail

      public void setPingTail(GeminiPingTail pingTail)
    • setAcousticZoom

      public void setAcousticZoom(GeminiAcousticZoom acousticZoom)
      Set the acoustic zoom data which always follows the main image record in an ECD file.
      Parameters:
      acousticZoom -
    • uncompressData

      public byte[] uncompressData()
    • getImageData

      public byte[] getImageData()
      Description copied from class: GeminiImageRecord
      Get uncompressed imageData.
      Specified by:
      getImageData in interface SonarImageRecordI
      Overrides:
      getImageData in class GeminiImageRecord
      Returns:
      image data in a single array
    • freeImageData

      public void freeImageData()
      Description copied from interface: SonarImageRecordI
      Free the data to save memory.
      Specified by:
      freeImageData in interface SonarImageRecordI
      Overrides:
      freeImageData in class GeminiImageRecord
    • getnRange

      public int getnRange()
      Specified by:
      getnRange in interface SonarImageRecordI
      Returns:
      The number of range bins
    • getnBeam

      public int getnBeam()
      Specified by:
      getnBeam in interface SonarImageRecordI
      Returns:
      the total number of beams
    • getSoS

      public double getSoS()
      Description copied from interface: SonarImageRecordI
      Get the speed of sound in m/s
      Specified by:
      getSoS in interface SonarImageRecordI
      Returns:
      speed of sound
    • getRecordTime

      public long getRecordTime()
      Specified by:
      getRecordTime in interface SonarRecordI
      Returns:
      Image time in milliseconds UTC.
    • clone

      public ECDImageRecord clone()
      Description copied from interface: SonarImageRecordI
      Clone in interface which is properly overridden in inherited classes
      Specified by:
      clone in interface SonarImageRecordI
      Overrides:
      clone in class GeminiImageRecord
      Returns:
      cloned record.
    • getChirp

      public int getChirp()
      Description copied from interface: SonarImageRecordI
      Get if chirp was on 0 off, 1 on, -1 unknown
      Specified by:
      getChirp in interface SonarImageRecordI
      Returns:
      true if chirp mode
    • getGain

      public int getGain()
      Specified by:
      getGain in interface SonarImageRecordI
      Returns:
      the gain for that frame