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, toStringDebug
protected 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()
IOServiceProvider
public java.lang.String getFileTypeDescription()
IOServiceProvider
public void open(RandomAccessFile raf, NetcdfFile file, CancelTask cancelTask) throws java.io.IOException
open
in interface IOServiceProvider
open
in class AbstractIOServiceProvider
raf
- file
- cancelTask
- java.io.IOException
public Array readData(Variable v2, Section section) throws java.io.IOException, InvalidRangeException
v2
- section
- java.io.IOException
InvalidRangeException
Range
public 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.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 java.io.IOException, InvalidRangeException
ddata
- is encoded data valuesjava.io.IOException
InvalidRangeException
public void reacquire() throws java.io.IOException
reacquire
in interface IOServiceProvider
reacquire
in class AbstractIOServiceProvider
java.io.IOException