Class Ray


  • public class Ray
    extends Object
    • Constructor Detail

      • Ray

        public Ray​(ByteBuffer bos,
                   int raySize,
                   long rayOffset)
    • Method Detail

      • getRaySize

        public int getRaySize()
      • getGateCount

        public int getGateCount​(String abbrev)
      • getDatatypeName

        public String getDatatypeName​(String abbrev)
      • getDatatypeUnits

        public String getDatatypeUnits​(String abbrev)
      • getDatatypeRangeFoldingThreshhold

        public short getDatatypeRangeFoldingThreshhold​(String abbrev)
      • getDatatypeScaleFactor

        public float getDatatypeScaleFactor​(String abbrev)
      • getDatatypeAddOffset

        public float getDatatypeAddOffset​(String abbrev)
      • getGateStart

        public int getGateStart​(String abbrev)
      • getDataOffset

        public int getDataOffset​(String abbrev)
      • getGateSize

        public int getGateSize​(String abbrev)
      • getElevation

        public float getElevation()
      • getAzimuth

        public float getAzimuth()
      • getMissingData

        public short getMissingData()
      • getYear

        public int getYear()
      • getLatitude

        public float getLatitude()
      • getLongtitude

        public float getLongtitude()
      • getHorizontalBeamWidth

        public float getHorizontalBeamWidth​(String abbrev)
      • getYear

        public int getYear​(int year)
      • getTitleMsecs

        public long getTitleMsecs()
      • setDateMesc

        public long setDateMesc()
      • getDate

        public Date getDate()
      • getShort

        protected short getShort​(byte[] bytes,
                                 int offset)
      • bytesToShort

        public static int bytesToShort​(byte a,
                                       byte b,
                                       boolean swapBytes)
      • byte2short

        public short[] byte2short​(byte[] a,
                                  int length)
      • readData

        public void readData​(RandomAccessFile raf,
                             String abbrev,
                             Range gateRange,
                             IndexIterator ii)
                      throws IOException
        Read data from this ray.
        Parameters:
        raf - read from this file
        abbrev - which data type we want
        gateRange - handles the possible subset of data to return
        ii - put the data here
        Throws:
        IOException