ucar.nc2.iosp.uf
Class Ray

java.lang.Object
  extended by ucar.nc2.iosp.uf.Ray

public class Ray
extends Object

Created by IntelliJ IDEA. User: yuanho Date: Oct 3, 2008 Time: 1:30:05 PM To change this template use File | Settings | File Templates.


Constructor Summary
Ray(ByteBuffer bos, int raySize, long rayOffset)
           
 
Method Summary
 short[] byte2short(byte[] a, int length)
           
static int bytesToInt(byte[] bytes, boolean swapBytes)
           
static int bytesToShort(byte a, byte b, boolean swapBytes)
           
 float getAzimuth()
           
 int getDataOffset(String abbrev)
           
 float getDatatypeAddOffset(String abbrev)
           
 String getDatatypeName(String abbrev)
           
 short getDatatypeRangeFoldingThreshhold(String abbrev)
           
 float getDatatypeScaleFactor(String abbrev)
           
 String getDatatypeUnits(String abbrev)
           
 Date getDate()
           
 float getElevation()
           
 int getGateCount(String abbrev)
           
 int getGateSize(String abbrev)
           
 int getGateStart(String abbrev)
           
 float getHorizontalBeamWidth(String abbrev)
           
 float getLatitude()
           
 float getLongtitude()
           
 short getMissingData()
           
 int getRaySize()
           
protected  short getShort(byte[] bytes, int offset)
           
protected  short getShort1(byte[] bytes, int offset)
           
 long getTitleMsecs()
           
 int getYear()
           
 int getYear(int year)
           
 void readData(RandomAccessFile raf, String abbrev, Range gateRange, IndexIterator ii)
          Read data from this ray.
 long setDateMesc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()

getShort1

protected short getShort1(byte[] bytes,
                          int offset)

getShort

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

bytesToShort

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

bytesToInt

public static int bytesToInt(byte[] bytes,
                             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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.