public class NOWRadiosp
extends ucar.nc2.iosp.AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
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 |
| 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) |
String |
getFileTypeDescription() |
String |
getFileTypeId() |
boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf)
Check if the file is a NOWRad file
|
void |
open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile file,
ucar.nc2.util.CancelTask cancelTask)
Open the file and read the header part
|
void |
reacquire() |
ucar.ma2.Array |
readData(ucar.nc2.Variable v2,
ucar.ma2.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
|
build, buildFinish, close, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebugprotected 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
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
public String getFileTypeId()
public String getFileTypeDescription()
public void open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile file,
ucar.nc2.util.CancelTask cancelTask)
throws IOException
open in interface ucar.nc2.iosp.IOServiceProvideropen in class ucar.nc2.iosp.AbstractIOServiceProviderIOExceptionpublic ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws IOException,
ucar.ma2.InvalidRangeException
IOExceptionucar.ma2.InvalidRangeExceptionpublic Object readOneScanData(ByteBuffer bos, ucar.nc2.iosp.nowrad.NOWRadheader.Vinfo vinfo, String vName)
bos - Data buffervinfo - variable infopublic 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)
ddata - is encoded data valuespublic void reacquire()
throws IOException
reacquire in interface ucar.nc2.iosp.IOServiceProviderreacquire in class ucar.nc2.iosp.AbstractIOServiceProviderIOException