public class Nidsiosp extends AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug |
protected boolean |
debugSize |
protected boolean |
debugSPIO |
protected int |
fileUsed |
protected ucar.nc2.iosp.nids.Nidsheader |
headerParser |
protected boolean |
readonly |
protected int |
recStart |
protected boolean |
showHeaderBytes |
location, ncfile, raf, rafOrder| Constructor and Description |
|---|
Nidsiosp() |
| Modifier and Type | Method and Description |
|---|---|
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)
Check if the file is a Nids file.
|
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
Open existing file, and populate ncfile with it.
|
void |
reacquire()
Reacquire any resources like file handles
Used when reactivating in cache.
|
ArrayStructure |
readCircleStructData(String name,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
byte[] |
readCompData(long hoff,
long doff)
Read compressed data
|
byte[] |
readCompData1(byte[] uncomp,
long hoff,
long doff) |
Array |
readData(Variable v2,
Section section)
Read the data for each variable passed in
|
ArrayStructure |
readGraphicSymbolData(String name,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read graphic sysmbol structure data
|
ArrayStructure |
readLinkedVectorData(String name,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read linked vector sturcture data
|
Array |
readNestedCircleStructData(String name,
String memberName,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
List<Range> section)
Read nested data
|
Array |
readNestedData(Variable v2,
Section section)
Read nested structure data
|
Array |
readNestedDataUnlinkVector(String name,
String memberName,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
List<Range> section)
Read nested data
|
Array |
readNestedGraphicSymbolData(String name,
StructureMembers.Member m,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
List<Range> section)
Read nested graphic symbolic structure data
|
Array |
readNestedLinkedVectorData(String name,
String memberName,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
List<Range> section)
Read nested structure data
|
Array |
readNestedTextStringData(String name,
String memberName,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
List<Range> section)
Read nested data
|
Array |
readNestedVectorArrowData(String name,
String memberName,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
List<Range> section)
Read nested data
|
Array |
readNestedWindBarbData(String name,
String memberName,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
List<Range> section)
Read nested data
|
Object |
readOneArrayData(ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
String vName) |
Object |
readOneArrayData1(ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
short[] |
readOneBeamShortData(byte[] ddata,
int rLen,
int xt,
int level)
read one radial beam data
|
byte[] |
readOneRowData(byte[] ddata,
int rLen,
int xt)
Read data from encoded values and run len into regular data array
|
short[] |
readOneRowData1(byte[] ddata,
int rLen,
int xt)
Read data from encoded values and run len into regular data array
|
short[] |
readOneRowData2(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.nids.Nidsheader.Vinfo vinfo,
String vName)
Read one scan radar data
|
Object |
readOneScanGenericData(ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
String vName)
Read one scan radar data
|
Object |
readTabAlphaNumData(ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
ArrayStructure |
readTextStringData(String name,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
byte[] |
readUCompData(long hoff,
long doff)
Read uncompressed data
|
ArrayStructure |
readUnlinkedVectorData(String name,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
ArrayStructure |
readVectorArrowData(String name,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
ArrayStructure |
readWindBarbData(String name,
ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
List sList)
Read data
|
close, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, streamToByteChannel, syncExtend, toStringDebugprotected boolean readonly
protected ucar.nc2.iosp.nids.Nidsheader headerParser
protected int fileUsed
protected int recStart
protected boolean debug
protected boolean debugSize
protected boolean debugSPIO
protected boolean showHeaderBytes
public boolean isValidFile(RandomAccessFile raf)
raf - RandomAccessFilepublic String getFileTypeId()
IOServiceProviderpublic String getFileTypeDescription()
IOServiceProviderpublic void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
IOServiceProvideropen in interface IOServiceProvideropen in class AbstractIOServiceProviderraf - the file to work on, it has already passed the isValidFile() test.ncfile - add objects to this empty NetcdfFilecancelTask - used to monitor user cancellation; may be null.IOException - if read errorpublic Array readNestedData(Variable v2, Section section) throws InvalidRangeException
InvalidRangeExceptionpublic Array readData(Variable v2, Section section) throws InvalidRangeException
v2 - a top-level Variablesection - the section of data to read.
There must be a Range for each Dimension in the variable, in order.
Note: no nulls allowed. IOSP may not modify.InvalidRangeException - if invalid sectionRangepublic Array readNestedGraphicSymbolData(String name, StructureMembers.Member m, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, List<Range> section) throws InvalidRangeException
name - Variable name,m - Structure mumber name,bos - data buffer,vinfo - variable info,section - variable sectionInvalidRangeExceptionpublic ArrayStructure readGraphicSymbolData(String name, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable namebos - data buffer,vinfo - variable info,public Array readNestedLinkedVectorData(String name, String memberName, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, List<Range> section) throws InvalidRangeException
name - Variable name,memberName - mumber name,bos - data buffer,vinfo - variable info,section - variable sectionInvalidRangeExceptionpublic ArrayStructure readLinkedVectorData(String name, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - data buffer,vinfo - variable info,public Array readNestedCircleStructData(String name, String memberName, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, List<Range> section) throws InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionInvalidRangeExceptionpublic ArrayStructure readCircleStructData(String name, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - Data buffer,vinfo - variable info,public Object readTabAlphaNumData(ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
bos - Data buffer,vinfo - variable info,public Object readOneScanGenericData(ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, String vName)
bos - Data buffervinfo - variable infopublic Object readOneScanData(ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, String vName)
bos - Data buffervinfo - variable infopublic short[] readOneBeamShortData(byte[] ddata,
int rLen,
int xt,
int level)
public Array readNestedWindBarbData(String name, String memberName, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, List<Range> section) throws InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionInvalidRangeExceptionpublic ArrayStructure readWindBarbData(String name, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, List sList)
name - Variable name,bos - Data buffer,vinfo - variable info,public Array readNestedVectorArrowData(String name, String memberName, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, List<Range> section) throws InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionInvalidRangeExceptionpublic ArrayStructure readVectorArrowData(String name, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - Data buffer,vinfo - variable info,public Array readNestedTextStringData(String name, String memberName, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, List<Range> section) throws InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionInvalidRangeExceptionpublic ArrayStructure readTextStringData(String name, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - Data buffer,vinfo - variable infopublic Array readNestedDataUnlinkVector(String name, String memberName, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, List<Range> section) throws InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionInvalidRangeExceptionpublic ArrayStructure readUnlinkedVectorData(String name, ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - Data buffer,vinfo - variable info,public Object readOneArrayData(ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo, String vName)
public Object readOneArrayData1(ByteBuffer bos, ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
bos - is data buffervinfo - is variable infopublic short[] readOneRowData1(byte[] ddata,
int rLen,
int xt)
ddata - is encoded data valuespublic short[] readOneRowData2(byte[] ddata,
int rLen,
int xt)
ddata - is encoded data valuespublic byte[] readOneRowData(byte[] ddata,
int rLen,
int xt)
ddata - is encoded data valuespublic byte[] readCompData1(byte[] uncomp,
long hoff,
long doff)
public byte[] readCompData(long hoff,
long doff)
throws IOException
hoff - header offsetdoff - data offsetIOExceptionpublic byte[] readUCompData(long hoff,
long doff)
throws IOException
hoff - header offsetdoff - data offsetIOExceptionpublic void reacquire()
throws IOException
IOServiceProviderreacquire in interface IOServiceProviderreacquire in class AbstractIOServiceProviderIOException