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 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)
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()
-
-
-
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(RandomAccessFile raf, String abbrev, Range gateRange, IndexIterator ii) throws IOException
Read 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
-
-