|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.AbstractIOServiceProvider
ucar.nc2.iosp.nowrad.NOWRadiosp
public class NOWRadiosp
Created by IntelliJ IDEA. User: yuanho Date: Feb 10, 2010 Time: 11:22:03 AM To change this template use File | Settings | File Templates.
Field Summary | |
---|---|
protected boolean |
debug
|
protected boolean |
debugSize
|
protected boolean |
debugSPIO
|
protected HashMap |
dimHash
|
protected int |
fileUsed
|
protected boolean |
fill
|
protected NOWRadheader |
headerParser
|
protected boolean |
readonly
|
protected int |
recStart
|
protected boolean |
showHeaderBytes
|
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
raf |
Constructor Summary | |
---|---|
NOWRadiosp()
|
Method Summary | |
---|---|
static int |
bytesToInt(byte a,
byte b,
boolean swapBytes)
|
static int |
bytesToInt(short a,
short b,
boolean swapBytes)
|
void |
close()
Close the file. |
short |
convertunsignedByte2Short(byte b)
|
void |
flush()
|
String |
getFileTypeDescription()
Get a human-readable description for this file type. |
String |
getFileTypeId()
Get a unique id for this file type. |
boolean |
isValidFile(RandomAccessFile raf)
checking the file |
static void |
main(String[] args)
|
void |
open(RandomAccessFile raf,
NetcdfFile file,
CancelTask cancelTask)
Open the file and read the header part |
Array |
readData(Variable v2,
Section section)
Read the data for each variable passed in |
byte[] |
readOneRowData(byte[] ddata,
int rLen,
int xt)
Read data from encoded values and run len into regular data array |
Object |
readOneScanData(ByteBuffer bos,
ucar.nc2.iosp.nowrad.NOWRadheader.Vinfo vinfo,
String vName)
Read one scan radar data |
static int |
unsignedByteToInt(byte b)
|
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
getDetailInfo, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, sendIospMessage, sync, syncExtend, toStringDebug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int fileUsed
protected int recStart
protected boolean debug
protected boolean debugSize
protected boolean debugSPIO
protected boolean showHeaderBytes
protected HashMap dimHash
protected boolean fill
protected NOWRadheader headerParser
protected boolean readonly
Constructor Detail |
---|
public NOWRadiosp()
Method Detail |
---|
public boolean isValidFile(RandomAccessFile raf)
raf
-
public String getFileTypeId()
IOServiceProvider
public String getFileTypeDescription()
IOServiceProvider
public void open(RandomAccessFile raf, NetcdfFile file, CancelTask cancelTask) throws IOException
open
in interface IOServiceProvider
open
in class AbstractIOServiceProvider
raf
- file
- cancelTask
-
IOException
public Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
v2
- section
-
IOException
InvalidRangeException
Range
public Object readOneScanData(ByteBuffer bos, ucar.nc2.iosp.nowrad.NOWRadheader.Vinfo vinfo, String vName) throws IOException, InvalidRangeException
bos
- Data buffervinfo
- variable info
IOException
InvalidRangeException
public static int bytesToInt(short a, short b, boolean swapBytes)
public static int bytesToInt(byte a, byte b, boolean swapBytes)
public byte[] readOneRowData(byte[] ddata, int rLen, int xt) throws IOException, InvalidRangeException
ddata
- is encoded data values
IOException
InvalidRangeException
public short convertunsignedByte2Short(byte b)
public static int unsignedByteToInt(byte b)
public void flush() throws IOException
IOException
public void close() throws IOException
IOServiceProvider
close
in interface IOServiceProvider
close
in class AbstractIOServiceProvider
IOException
- if read errorpublic static void main(String[] args) throws Exception, IOException, InstantiationException, IllegalAccessException
Exception
IOException
InstantiationException
IllegalAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |