|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.iosp.AbstractIOServiceProvider
ucar.nc2.iosp.nids.Nidsiosp
public class Nidsiosp
IOServiceProvider implementation abstract base class to read/write "version 3" netcdf files. AKA "file format version 1" files.
see concrete class
| Field Summary | |
|---|---|
protected boolean |
debug
|
protected boolean |
debugSize
|
protected boolean |
debugSPIO
|
protected java.util.HashMap |
dimHash
|
protected int |
fileUsed
|
protected boolean |
fill
|
protected ucar.nc2.iosp.nids.Nidsheader |
headerParser
|
protected boolean |
readonly
|
protected int |
recStart
|
protected boolean |
showHeaderBytes
|
| Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
|---|
raf |
| Constructor Summary | |
|---|---|
Nidsiosp()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the file. |
short |
convertunsignedByte2Short(byte b)
|
void |
flush()
|
java.lang.String |
getFileTypeDescription()
Get a human-readable description for this file type. |
java.lang.String |
getFileTypeId()
Get a unique id for this file type. |
boolean |
isValidFile(RandomAccessFile raf)
checking the file |
static void |
main(java.lang.String[] args)
|
void |
open(RandomAccessFile raf,
NetcdfFile file,
CancelTask cancelTask)
Open the file and read the header part |
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)
|
Array |
readData(Variable v2,
Section section)
Read the data for each variable passed in |
java.lang.Object |
readDistance(ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
|
ArrayStructure |
readGraphicSymbolData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read graphic sysmbol structure data |
ArrayStructure |
readLinkedVectorData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read linked vector sturcture data |
Array |
readNestedCircleStructData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
Read nested data |
Array |
readNestedData(Variable v2,
Section section)
Read nested structure data |
Array |
readNestedDataUnlinkVector(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
Read nested data |
Array |
readNestedGraphicSymbolData(java.lang.String name,
StructureMembers.Member m,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
Read nested graphic symbolic structure data |
Array |
readNestedLinkedVectorData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
Read nested structure data |
Array |
readNestedTextStringData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
Read nested data |
Array |
readNestedVectorArrowData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
Read nested data |
Array |
readNestedWindBarbData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List 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 |
byte[] |
readOneBeamData(byte[] ddata,
int rLen,
int xt,
int level)
read one radial beam 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 |
byte[] |
readOneRowData1(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 |
readRadialDataAzi(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
|
java.lang.Object |
readRadialDataEle(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
read radail elevation array |
java.lang.Object |
readRadialDataGate(ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
|
java.lang.Object |
readRadialDataLatLonAlt(double t,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
read radial data |
java.lang.Object |
readTabAlphaNumData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data |
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 |
ArrayStructure |
readUnlinkedVectorData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data |
ArrayStructure |
readVectorArrowData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
Read data |
ArrayStructure |
readWindBarbData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List sList)
Read data |
static int |
unsignedByteToInt(byte b)
|
| Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
|---|
copyToByteChannel, createValidNetcdfObjectName, getDetailInfo, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, sendIospMessage, sync, syncExtend, toStringDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected 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
protected boolean fill
protected java.util.HashMap dimHash
| Constructor Detail |
|---|
public Nidsiosp()
| Method Detail |
|---|
public boolean isValidFile(RandomAccessFile raf)
raf -
public java.lang.String getFileTypeId()
IOServiceProvider
public java.lang.String getFileTypeDescription()
IOServiceProvider
public void open(RandomAccessFile raf,
NetcdfFile file,
CancelTask cancelTask)
throws java.io.IOException
raf - file - cancelTask -
java.io.IOException
public Array readNestedData(Variable v2,
Section section)
throws java.io.IOException,
InvalidRangeException
v2 - section -
java.io.IOException
InvalidRangeException
public Array readData(Variable v2,
Section section)
throws java.io.IOException,
InvalidRangeException
v2 - section -
java.io.IOException
InvalidRangeExceptionRange
public Array readNestedGraphicSymbolData(java.lang.String name,
StructureMembers.Member m,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
name - Variable name,m - Structure mumber name,bos - data buffer,vinfo - variable info,section - variable section
java.io.IOException
InvalidRangeException
public ArrayStructure readGraphicSymbolData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
name - Variable namebos - data buffer,vinfo - variable info,
java.io.IOException
InvalidRangeException
public Array readNestedLinkedVectorData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
name - Variable name,memberName - mumber name,bos - data buffer,vinfo - variable info,section - variable section
java.io.IOException
InvalidRangeException
public ArrayStructure readLinkedVectorData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
name - Variable name,bos - data buffer,vinfo - variable info,
java.io.IOException
InvalidRangeException
public Array readNestedCircleStructData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable section
java.io.IOException
InvalidRangeException
public ArrayStructure readCircleStructData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
name - Variable name,bos - Data buffer,vinfo - variable info,
java.io.IOException
InvalidRangeException
public java.lang.Object readTabAlphaNumData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
bos - Data buffer,vinfo - variable info,
java.io.IOException
InvalidRangeException
public java.lang.Object readOneScanData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.lang.String vName)
throws java.io.IOException,
InvalidRangeException
bos - Data buffervinfo - variable info
java.io.IOException
InvalidRangeException
public byte[] readOneBeamData(byte[] ddata,
int rLen,
int xt,
int level)
throws java.io.IOException,
InvalidRangeException
ddata - rLen - xt - level -
java.io.IOException
InvalidRangeException
public short[] readOneBeamShortData(byte[] ddata,
int rLen,
int xt,
int level)
throws java.io.IOException,
InvalidRangeException
ddata - rLen - xt - level -
java.io.IOException
InvalidRangeException
public Array readNestedWindBarbData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable section
java.io.IOException
InvalidRangeException
public ArrayStructure readWindBarbData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List sList)
throws java.io.IOException,
InvalidRangeException
name - Variable name,bos - Data buffer,vinfo - variable info,
java.io.IOException
InvalidRangeException
public Array readNestedVectorArrowData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable section
java.io.IOException
InvalidRangeException
public ArrayStructure readVectorArrowData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
name - Variable name,bos - Data buffer,vinfo - variable info,
java.io.IOException
InvalidRangeException
public Array readNestedTextStringData(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable section
java.io.IOException
InvalidRangeException
public ArrayStructure readTextStringData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
name - Variable name,bos - Data buffer,vinfo - variable info
java.io.IOException
InvalidRangeException
public Array readNestedDataUnlinkVector(java.lang.String name,
java.lang.String memberName,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
name - Variable name,memberName - Structure mumber name,bos - Data buffer,vinfo - variable info,section - variable section
java.io.IOException
InvalidRangeException
public ArrayStructure readUnlinkedVectorData(java.lang.String name,
java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
name - Variable name,bos - Data buffer,vinfo - variable info,
java.io.IOException
InvalidRangeException
public java.lang.Object readOneArrayData(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo,
java.lang.String vName)
throws java.io.IOException,
InvalidRangeException
java.io.IOException
InvalidRangeException
public java.lang.Object readOneArrayData1(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
bos - is data buffervinfo - is variable info
java.io.IOException
InvalidRangeException
public byte[] readOneRowData1(byte[] ddata,
int rLen,
int xt)
throws java.io.IOException,
InvalidRangeException
ddata - is encoded data values
java.io.IOException
InvalidRangeException
public byte[] readOneRowData(byte[] ddata,
int rLen,
int xt)
throws java.io.IOException,
InvalidRangeException
ddata - is encoded data values
java.io.IOException
InvalidRangeException
public java.lang.Object readRadialDataEle(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
bos - vinfo -
java.io.IOException
InvalidRangeException
public java.lang.Object readRadialDataLatLonAlt(double t,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
t - vinfo -
java.io.IOException
InvalidRangeException
public java.lang.Object readRadialDataAzi(java.nio.ByteBuffer bos,
ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
java.io.IOException
InvalidRangeException
public java.lang.Object readDistance(ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
java.io.IOException
InvalidRangeException
public java.lang.Object readRadialDataGate(ucar.nc2.iosp.nids.Nidsheader.Vinfo vinfo)
throws java.io.IOException,
InvalidRangeException
java.io.IOException
InvalidRangeException
public byte[] readCompData1(byte[] uncomp,
long hoff,
long doff)
throws java.io.IOException
java.io.IOException
public byte[] readCompData(long hoff,
long doff)
throws java.io.IOException
hoff - header offsetdoff - data offset
java.io.IOException
public byte[] readUCompData(long hoff,
long doff)
throws java.io.IOException
hoff - header offsetdoff - data offset
java.io.IOExceptionpublic short convertunsignedByte2Short(byte b)
public static int unsignedByteToInt(byte b)
public void flush()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
IOServiceProvider
close in interface IOServiceProviderclose in class AbstractIOServiceProviderjava.io.IOException - if read error
public static void main(java.lang.String[] args)
throws java.lang.Exception,
java.io.IOException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.Exception
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||