Package ucar.nc2.iosp.uf
Class Ray
- java.lang.Object
-
- ucar.nc2.iosp.uf.Ray
-
public class Ray extends Object
-
-
Constructor Summary
Constructors Constructor Description Ray(ByteBuffer bos, int raySize, long rayOffset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description short[]byte2short(byte[] a, int length)static intbytesToShort(byte a, byte b, boolean swapBytes)floatgetAzimuth()intgetDataOffset(String abbrev)floatgetDatatypeAddOffset(String abbrev)StringgetDatatypeName(String abbrev)shortgetDatatypeRangeFoldingThreshhold(String abbrev)floatgetDatatypeScaleFactor(String abbrev)StringgetDatatypeUnits(String abbrev)DategetDate()floatgetElevation()intgetGateCount(String abbrev)intgetGateSize(String abbrev)intgetGateStart(String abbrev)floatgetHorizontalBeamWidth(String abbrev)floatgetLatitude()floatgetLongtitude()shortgetMissingData()intgetRaySize()protected shortgetShort(byte[] bytes, int offset)longgetTitleMsecs()intgetYear()intgetYear(int year)voidreadData(ucar.unidata.io.RandomAccessFile raf, String abbrev, ucar.ma2.Range gateRange, ucar.ma2.IndexIterator ii)Read data from this ray.longsetDateMesc()
-
-
-
Constructor Detail
-
Ray
public Ray(ByteBuffer bos, int raySize, long rayOffset)
-
-
Method Detail
-
getRaySize
public int getRaySize()
-
getGateCount
public int getGateCount(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(ucar.unidata.io.RandomAccessFile raf, String abbrev, ucar.ma2.Range gateRange, ucar.ma2.IndexIterator ii) throws IOExceptionRead data from this ray.- Parameters:
raf- read from this fileabbrev- which data type we wantgateRange- handles the possible subset of data to returnii- put the data here- Throws:
IOException
-
-