public class Ray extends Object
Constructor and Description |
---|
Ray(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(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() |
public Ray(ByteBuffer bos, int raySize, long rayOffset)
public int getRaySize()
public int getGateCount(String abbrev)
public short getDatatypeRangeFoldingThreshhold(String abbrev)
public float getDatatypeScaleFactor(String abbrev)
public float getDatatypeAddOffset(String abbrev)
public int getGateStart(String abbrev)
public int getDataOffset(String abbrev)
public int getGateSize(String abbrev)
public float getElevation()
public float getAzimuth()
public short getMissingData()
public int getYear()
public float getLatitude()
public float getLongtitude()
public float getHorizontalBeamWidth(String abbrev)
public int getYear(int year)
public long getTitleMsecs()
public long setDateMesc()
public 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, String abbrev, Range gateRange, IndexIterator ii) throws IOException
raf
- read from this fileabbrev
- which data type we wantgateRange
- handles the possible subset of data to returnii
- put the data hereIOException
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.