ucar.nc2.iosp.uf
Class Ray
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ray
public Ray(ByteBuffer bos,
int raySize,
long rayOffset)
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 fileabbrev
- which data type we wantgateRange
- handles the possible subset of data to returnii
- put the data here
- Throws:
IOException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.