public class NOWRadiosp extends 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 |
raf| 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()
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
|
close, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, readSection, readToByteChannel, readToOutputStream, sendIospMessage, 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(RandomAccessFile raf)
raf - public String getFileTypeId()
IOServiceProviderpublic String getFileTypeDescription()
IOServiceProviderpublic void open(RandomAccessFile raf, NetcdfFile file, CancelTask cancelTask) throws IOException
open in interface IOServiceProvideropen in class AbstractIOServiceProviderraf - file - cancelTask - IOExceptionpublic Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
v2 - section - IOExceptionInvalidRangeExceptionRangepublic Object readOneScanData(ByteBuffer bos, ucar.nc2.iosp.nowrad.NOWRadheader.Vinfo vinfo, String vName) throws IOException, InvalidRangeException
bos - Data buffervinfo - variable infoIOExceptionInvalidRangeExceptionpublic 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 valuesIOExceptionInvalidRangeExceptionpublic static void main(String[] args) throws Exception, IOException, InstantiationException, IllegalAccessException
Copyright © 1999-2013 UCAR/Unidata. All Rights Reserved.