public class NOWRadiosp extends AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug |
protected boolean |
debugSize |
protected boolean |
debugSPIO |
protected java.util.HashMap |
dimHash |
protected int |
fileUsed |
protected boolean |
fill |
protected NOWRadheader |
headerParser |
protected boolean |
readonly |
protected int |
recStart |
protected boolean |
showHeaderBytes |
location, ncfile, raf, rafOrder| Constructor and Description |
|---|
NOWRadiosp() |
| Modifier and Type | Method and Description |
|---|---|
static int |
bytesToInt(byte a,
byte b,
boolean swapBytes) |
static int |
bytesToInt(short a,
short b,
boolean swapBytes) |
java.lang.String |
getFileTypeDescription()
Get a human-readable description for this file type.
|
java.lang.String |
getFileTypeId()
Get a unique id for this file type.
|
boolean |
isValidFile(RandomAccessFile raf)
checking the file
|
void |
open(RandomAccessFile raf,
NetcdfFile file,
CancelTask cancelTask)
Open the file and read the header part
|
void |
reacquire() |
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
|
java.lang.Object |
readOneScanData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nowrad.NOWRadheader.Vinfo vinfo,
java.lang.String vName)
Read one scan radar data
|
close, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, streamToByteChannel, syncExtend, toStringDebugprotected int fileUsed
protected int recStart
protected boolean debug
protected boolean debugSize
protected boolean debugSPIO
protected boolean showHeaderBytes
protected java.util.HashMap dimHash
protected boolean fill
protected NOWRadheader headerParser
protected boolean readonly
public boolean isValidFile(RandomAccessFile raf)
raf - public java.lang.String getFileTypeId()
IOServiceProviderpublic java.lang.String getFileTypeDescription()
IOServiceProviderpublic void open(RandomAccessFile raf, NetcdfFile file, CancelTask cancelTask) throws java.io.IOException
open in interface IOServiceProvideropen in class AbstractIOServiceProviderraf - file - cancelTask - java.io.IOExceptionpublic Array readData(Variable v2, Section section) throws java.io.IOException, InvalidRangeException
v2 - section - java.io.IOExceptionInvalidRangeExceptionRangepublic java.lang.Object readOneScanData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nowrad.NOWRadheader.Vinfo vinfo,
java.lang.String vName)
throws java.io.IOException,
InvalidRangeException
bos - Data buffervinfo - variable infojava.io.IOExceptionInvalidRangeExceptionpublic 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 java.io.IOException,
InvalidRangeException
ddata - is encoded data valuesjava.io.IOExceptionInvalidRangeExceptionpublic void reacquire()
throws java.io.IOException
reacquire in interface IOServiceProviderreacquire in class AbstractIOServiceProviderjava.io.IOException