|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.Variable
ucar.nc2.Structure
ucar.nc2.dataset.StructureDS
ucar.nc2.dataset.SequenceDS
public class SequenceDS
Enhance sequence
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ucar.nc2.Variable |
---|
Variable.Cache |
Field Summary |
---|
Fields inherited from class ucar.nc2.dataset.StructureDS |
---|
orgVar |
Fields inherited from class ucar.nc2.Structure |
---|
defaultBufferSize, isSubset, memberHash, members |
Fields inherited from class ucar.nc2.Variable |
---|
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, group, hashCode, isMetadata, isVariableLength, ncfile, parent, proxyReader, shape, shapeAsSection, shortName, sizeToCache, spiObject |
Constructor Summary | |
---|---|
SequenceDS(Group g,
Sequence orgSeq)
|
Method Summary | |
---|---|
StructureDataIterator |
getStructureIterator(int bufferSize)
Get an efficient iterator over all the data in the Structure. |
Array |
read()
Read all the data for this Variable and return a memory resident Array. |
Array |
read(Section section)
Read a section of the data for this Variable from the netcdf file and return a memory resident Array. |
Methods inherited from class ucar.nc2.dataset.StructureDS |
---|
addCoordinateSystem, clearCoordinateSystems, convert, convert, copy, enhance, getCoordinateSystems, getDescription, getOriginalDataType, getOriginalName, getOriginalVariable, getUnitsString, reallyRead, reallyRead, removeCoordinateSystem, select, setName, setOriginalVariable, setUnitsString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ucar.nc2.VariableSimpleIF |
---|
getName |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public SequenceDS(Group g, Sequence orgSeq)
Method Detail |
---|
public StructureDataIterator getStructureIterator(int bufferSize) throws IOException
Structure
Example: StructureDataIterator ii = structVariable.getStructureIterator(100 * 1000); while (ii.hasNext()) { StructureData sdata = ii.next(); }
getStructureIterator
in class Structure
bufferSize
- size in bytes to buffer, set < 0 to use default size
IOException
- on read errorpublic Array read(Section section) throws IOException, InvalidRangeException
Variable
read
in interface VariableIF
read
in class Variable
section
- list of Range specifying the section of data to read.
Must be null or same rank as variable.
If list is null, assume all data.
Each Range corresponds to a Dimension. If the Range object is null, it means use the entire dimension.
IOException
- if error
InvalidRangeException
- if section is invalidpublic Array read() throws IOException
Variable
read
in interface VariableIF
read
in class Variable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |