public class Ray
extends java.lang.Object
Constructor and Description |
---|
Ray(java.nio.ByteBuffer bos,
int raySize,
long rayOffset) |
Modifier and Type | Method and Description |
---|---|
short[] |
byte2short(byte[] a,
int length) |
static int |
bytesToShort(byte a,
byte b,
boolean swapBytes) |
float |
getAzimuth() |
int |
getDataOffset(java.lang.String abbrev) |
float |
getDatatypeAddOffset(java.lang.String abbrev) |
java.lang.String |
getDatatypeName(java.lang.String abbrev) |
short |
getDatatypeRangeFoldingThreshhold(java.lang.String abbrev) |
float |
getDatatypeScaleFactor(java.lang.String abbrev) |
java.lang.String |
getDatatypeUnits(java.lang.String abbrev) |
java.util.Date |
getDate() |
float |
getElevation() |
int |
getGateCount(java.lang.String abbrev) |
int |
getGateSize(java.lang.String abbrev) |
int |
getGateStart(java.lang.String abbrev) |
float |
getHorizontalBeamWidth(java.lang.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,
java.lang.String abbrev,
Range gateRange,
IndexIterator ii)
Read data from this ray.
|
long |
setDateMesc() |
public int getRaySize()
public int getGateCount(java.lang.String abbrev)
public java.lang.String getDatatypeName(java.lang.String abbrev)
public java.lang.String getDatatypeUnits(java.lang.String abbrev)
public short getDatatypeRangeFoldingThreshhold(java.lang.String abbrev)
public float getDatatypeScaleFactor(java.lang.String abbrev)
public float getDatatypeAddOffset(java.lang.String abbrev)
public int getGateStart(java.lang.String abbrev)
public int getDataOffset(java.lang.String abbrev)
public int getGateSize(java.lang.String abbrev)
public float getElevation()
public float getAzimuth()
public short getMissingData()
public int getYear()
public float getLatitude()
public float getLongtitude()
public float getHorizontalBeamWidth(java.lang.String abbrev)
public int getYear(int year)
public long getTitleMsecs()
public long setDateMesc()
public java.util.Date getDate()
protected short getShort(byte[] bytes, int offset)
public static int bytesToShort(byte a, byte b, boolean swapBytes)
public short[] byte2short(byte[] a, int length)
public void readData(RandomAccessFile raf, java.lang.String abbrev, Range gateRange, IndexIterator ii) throws java.io.IOException
raf
- read from this fileabbrev
- which data type we wantgateRange
- handles the possible subset of data to returnii
- put the data herejava.io.IOException