|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.iosp.bufr.BufrIosp
public class BufrIosp
BufrIosp
| Field Summary | |
|---|---|
static boolean |
extendIndex
|
static boolean |
forceNewIndex
|
protected NetcdfFile |
ncfile
|
protected java.lang.StringBuffer |
parseInfo
|
protected RandomAccessFile |
raf
|
static boolean |
useMaximalCoordSys
|
| Constructor Summary | |
|---|---|
BufrIosp()
|
|
| Method Summary | |
|---|---|
protected void |
_readData(long DDSoffset,
long obsOffset,
int bitPos,
int bitBuf)
|
void |
close()
Close the file. |
java.lang.String |
getDetailInfo()
Show debug / underlying implementation details |
protected ucar.bufr.Index |
getIndex(java.lang.String location,
CancelTask cancelTask)
Open the index file. |
boolean |
isValidFile(RandomAccessFile raf)
Check if this is a valid file for this IOServiceProvider. |
static void |
main(java.lang.String[] args)
main. |
protected void |
open(ucar.bufr.Index index,
CancelTask cancelTask)
|
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
Open existing file, and populate ncfile with it. |
Array |
readData(Variable v2,
java.util.List section)
Read data from a top level Variable and return a memory resident Array. |
void |
readDataCompressed(java.lang.String table,
java.util.ArrayList locations,
Range range,
java.util.HashMap observations,
java.util.ArrayList vars,
java.util.HashMap iiHash,
java.util.HashMap dataHash,
StructureMembers members)
|
Array |
readDataVariableRecord(Variable v2,
java.util.List section)
|
void |
readDataVariableRecordCompressed(java.lang.String table,
java.util.ArrayList locations,
Range range,
java.util.HashMap observations,
Variable v2,
IndexIterator ii,
Array data)
|
Array |
readNestedData(Variable v2,
java.util.List section)
Read data from a Variable that is nested in one or more Structures. |
static void |
setDebugFlags(DebugFlags debugFlag)
|
static void |
setExtendIndex(boolean b)
|
void |
setSpecial(java.lang.Object special)
A way to communicate arbitrary information to an iosp. |
boolean |
sync()
Check if file has changed, and reread metadata if needed. |
boolean |
syncExtend()
Extend the file if needed in a way that is compatible with the current metadata. |
java.lang.String |
toStringDebug(java.lang.Object o)
Debug info for this object. |
static void |
useMaximalCoordSys(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NetcdfFile ncfile
protected RandomAccessFile raf
protected java.lang.StringBuffer parseInfo
public static boolean forceNewIndex
public static boolean useMaximalCoordSys
public static boolean extendIndex
| Constructor Detail |
|---|
public BufrIosp()
| Method Detail |
|---|
public static void useMaximalCoordSys(boolean b)
public static void setExtendIndex(boolean b)
public static void setDebugFlags(DebugFlags debugFlag)
public boolean isValidFile(RandomAccessFile raf)
IOServiceProvider
isValidFile in interface IOServiceProviderraf - RandomAccessFile
protected void open(ucar.bufr.Index index,
CancelTask cancelTask)
throws java.io.IOException
java.io.IOException
public void open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
throws java.io.IOException
IOServiceProvider
open in interface IOServiceProviderraf - the file to work on, it has already passed the isValidFile() test.ncfile - add objects to this NetcdfFilecancelTask - used to monito user cancellation; may be null.
java.io.IOException
protected ucar.bufr.Index getIndex(java.lang.String location,
CancelTask cancelTask)
throws java.io.IOException
location - location of the file. The index file has ".bfx" appended.cancelTask - user may cancel
java.io.IOExceptionpublic boolean syncExtend()
IOServiceProvider
syncExtend in interface IOServiceProvider
public boolean sync()
throws java.io.IOException
IOServiceProvider
sync in interface IOServiceProviderjava.io.IOException
public Array readData(Variable v2,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
IOServiceProvider
readData in interface IOServiceProviderv2 - a top-level Variablesection - List of type Range specifying the section of data to read.
There must be a Range for each Dimension in the variable, in order.
Note: no nulls.
java.io.IOException
InvalidRangeExceptionRange
public void readDataCompressed(java.lang.String table,
java.util.ArrayList locations,
Range range,
java.util.HashMap observations,
java.util.ArrayList vars,
java.util.HashMap iiHash,
java.util.HashMap dataHash,
StructureMembers members)
throws java.io.IOException,
InvalidRangeException
java.io.IOException
InvalidRangeException
public Array readDataVariableRecord(Variable v2,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
java.io.IOException
InvalidRangeException
public void readDataVariableRecordCompressed(java.lang.String table,
java.util.ArrayList locations,
Range range,
java.util.HashMap observations,
Variable v2,
IndexIterator ii,
Array data)
throws java.io.IOException,
InvalidRangeException
java.io.IOException
InvalidRangeException
public Array readNestedData(Variable v2,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
IOServiceProviderv2.getParent() is called to get the containing Structures.
readNestedData in interface IOServiceProviderv2 - a nested Variable.section - List of type Range specifying the section of data to read. There must be a Range for each
Dimension in each parent, as well as in the Variable itself. Must be in order from outer to inner.
Note: no nulls.
java.io.IOException
InvalidRangeException
protected void _readData(long DDSoffset,
long obsOffset,
int bitPos,
int bitBuf)
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
IOServiceProvider
close in interface IOServiceProviderjava.io.IOExceptionpublic void setSpecial(java.lang.Object special)
IOServiceProvider
setSpecial in interface IOServiceProviderspecial - opaque special settings.public java.lang.String toStringDebug(java.lang.Object o)
IOServiceProvider
toStringDebug in interface IOServiceProviderpublic java.lang.String getDetailInfo()
IOServiceProvider
getDetailInfo in interface IOServiceProvider
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 | |||||||||