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 |
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) |
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, reacquire, 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 HashMap dimHash
protected boolean fill
protected NOWRadheader headerParser
protected boolean readonly
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 infoIOException
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 valuesIOException
InvalidRangeException
public static void main(String[] args) throws Exception, IOException, InstantiationException, IllegalAccessException
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.