public class Nidsiosp
extends ucar.nc2.iosp.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 |
| Constructor and Description |
|---|
Nidsiosp() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileTypeDescription() |
java.lang.String |
getFileTypeId() |
boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf)
Check if the file is a Nids file.
|
void |
open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask) |
void |
reacquire() |
ucar.ma2.ArrayStructure |
readCircleStructData(java.lang.String name,
java.nio.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) |
ucar.ma2.Array |
readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
Read the data for each variable passed in
|
ucar.ma2.ArrayStructure |
readGraphicSymbolData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read graphic sysmbol structure data
|
ucar.ma2.ArrayStructure |
readLinkedVectorData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read linked vector sturcture data
|
ucar.ma2.Array |
readNestedCircleStructData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
Read nested data
|
ucar.ma2.Array |
readNestedData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
Read nested structure data
|
ucar.ma2.Array |
readNestedDataUnlinkVector(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
Read nested data
|
ucar.ma2.Array |
readNestedGraphicSymbolData(java.lang.String name,
ucar.ma2.StructureMembers.Member m,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
Read nested graphic symbolic structure data
|
ucar.ma2.Array |
readNestedLinkedVectorData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
Read nested structure data
|
ucar.ma2.Array |
readNestedTextStringData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
Read nested data
|
ucar.ma2.Array |
readNestedVectorArrowData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
Read nested data
|
ucar.ma2.Array |
readNestedWindBarbData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
Read nested data
|
java.lang.Object |
readOneArrayData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.lang.String vName) |
java.lang.Object |
readOneArrayData1(java.nio.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
|
java.lang.Object |
readOneScanData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.lang.String vName)
Read one scan radar data
|
java.lang.Object |
readOneScanGenericData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.lang.String vName)
Read one scan radar data
|
java.lang.Object |
readTabAlphaNumData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
ucar.ma2.ArrayStructure |
readTextStringData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
byte[] |
readUCompData(long hoff,
long doff)
Read uncompressed data
|
ucar.ma2.ArrayStructure |
readUnlinkedVectorData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
ucar.ma2.ArrayStructure |
readVectorArrowData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data
|
ucar.ma2.ArrayStructure |
readWindBarbData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List sList)
Read data
|
build, buildFinish, close, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, 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(ucar.unidata.io.RandomAccessFile raf)
public java.lang.String getFileTypeId()
public java.lang.String getFileTypeDescription()
public void open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws java.io.IOException
open in interface ucar.nc2.iosp.IOServiceProvideropen in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic ucar.ma2.Array readNestedData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws ucar.ma2.InvalidRangeException
ucar.ma2.InvalidRangeExceptionpublic ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws ucar.ma2.InvalidRangeException
ucar.ma2.InvalidRangeExceptionpublic ucar.ma2.Array readNestedGraphicSymbolData(java.lang.String name,
ucar.ma2.StructureMembers.Member m,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
throws ucar.ma2.InvalidRangeException
name - Variable name,m - Structure mumber name,bos - data buffer,vinfo - variable info,section - variable sectionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.ArrayStructure readGraphicSymbolData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable namebos - data buffer,vinfo - variable info,public ucar.ma2.Array readNestedLinkedVectorData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
throws ucar.ma2.InvalidRangeException
name - Variable name,memberName - mumber name,bos - data buffer,vinfo - variable info,section - variable sectionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.ArrayStructure readLinkedVectorData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - data buffer,vinfo - variable info,public ucar.ma2.Array readNestedCircleStructData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
throws ucar.ma2.InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.ArrayStructure readCircleStructData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - Data buffer,vinfo - variable info,public java.lang.Object readTabAlphaNumData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
bos - Data buffer,vinfo - variable info,public java.lang.Object readOneScanGenericData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.lang.String vName)
bos - Data buffervinfo - variable infopublic java.lang.Object readOneScanData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.lang.String vName)
bos - Data buffervinfo - variable infopublic short[] readOneBeamShortData(byte[] ddata,
int rLen,
int xt,
int level)
public ucar.ma2.Array readNestedWindBarbData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
throws ucar.ma2.InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.ArrayStructure readWindBarbData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List sList)
name - Variable name,bos - Data buffer,vinfo - variable info,public ucar.ma2.Array readNestedVectorArrowData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
throws ucar.ma2.InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.ArrayStructure readVectorArrowData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - Data buffer,vinfo - variable info,public ucar.ma2.Array readNestedTextStringData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
throws ucar.ma2.InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.ArrayStructure readTextStringData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - Data buffer,vinfo - variable infopublic ucar.ma2.Array readNestedDataUnlinkVector(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List<ucar.ma2.Range> section)
throws ucar.ma2.InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable sectionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.ArrayStructure readUnlinkedVectorData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
name - Variable name,bos - Data buffer,vinfo - variable info,public java.lang.Object readOneArrayData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.lang.String vName)
public java.lang.Object readOneArrayData1(java.nio.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 java.io.IOException
hoff - header offsetdoff - data offsetjava.io.IOExceptionpublic byte[] readUCompData(long hoff,
long doff)
throws java.io.IOException
hoff - header offsetdoff - data offsetjava.io.IOExceptionpublic void reacquire()
throws java.io.IOException
reacquire in interface ucar.nc2.iosp.IOServiceProviderreacquire in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOException