public class Giniiosp 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 ucar.nc2.iosp.gini.Giniheader |
headerParser |
protected boolean |
readonly |
protected int |
recStart |
protected boolean |
showHeaderBytes |
raf| Constructor and Description |
|---|
Giniiosp() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the file.
|
void |
flush() |
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 this is a valid file for this IOServiceProvider.
|
static void |
main(String[] args) |
void |
open(RandomAccessFile raf,
NetcdfFile file,
CancelTask cancelTask)
Open existing file, and populate ncfile with it.
|
Array |
readCompressedData(Variable v2,
long dataPos,
int[] origin,
int[] shape,
int[] stride,
int[] levels) |
Array |
readCompressedZlib(Variable v2,
long dataPos,
int nx,
int ny,
int[] origin,
int[] shape,
int[] stride,
int[] levels) |
Array |
readData(Variable v2,
Section section)
Read data from a top level Variable and return a memory resident Array.
|
Array |
readDataOld(Variable v2,
long dataPos,
int[] origin,
int[] shape,
int[] stride) |
Array |
readNestedData(Variable v2,
List section) |
getDetailInfo, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, sendIospMessage, streamToByteChannel, sync, syncExtend, toStringDebugprotected boolean readonly
protected ucar.nc2.iosp.gini.Giniheader headerParser
protected int fileUsed
protected int recStart
protected boolean debug
protected boolean debugSize
protected boolean debugSPIO
protected boolean showHeaderBytes
protected boolean fill
protected HashMap dimHash
public Array readNestedData(Variable v2, List section) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionpublic boolean isValidFile(RandomAccessFile raf)
IOServiceProviderraf - RandomAccessFilepublic void open(RandomAccessFile raf, NetcdfFile file, CancelTask cancelTask) throws IOException
IOServiceProvideropen in interface IOServiceProvideropen in class AbstractIOServiceProviderraf - the file to work on, it has already passed the isValidFile() test.file - add objects to this empty NetcdfFilecancelTask - used to monitor user cancellation; may be null.IOException - if read errorpublic Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
IOServiceProviderv2 - 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.IOException - if read errorInvalidRangeException - if invalid sectionRangepublic Array readDataOld(Variable v2, long dataPos, int[] origin, int[] shape, int[] stride) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionpublic Array readCompressedData(Variable v2, long dataPos, int[] origin, int[] shape, int[] stride, int[] levels) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionpublic Array readCompressedZlib(Variable v2, long dataPos, int nx, int ny, int[] origin, int[] shape, int[] stride, int[] levels) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOServiceProviderclose in interface IOServiceProviderclose in class AbstractIOServiceProviderIOException - if read errorpublic String getFileTypeId()
IOServiceProviderpublic String getFileTypeDescription()
IOServiceProviderpublic static void main(String[] args) throws Exception, IOException, InstantiationException, IllegalAccessException
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.