|
||||||||||
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.StructurePseudo
public class StructurePseudo
Make a collection of variables with the same outer dimension into a fake Structure. Its fake because the variables are not stored contiguously.
so var1(dim, other); var2(dim, other); var3(dim, other); becomes struct { var1(other); var2(other); var3(other); } name(dim);
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ucar.nc2.Variable |
---|
Variable.Cache |
Field Summary |
---|
Fields inherited from class ucar.nc2.Structure |
---|
defaultBufferSize, isSubset, log, 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 | |
---|---|
StructurePseudo(NetcdfFile ncfile,
Group group,
String shortName,
Dimension dim)
Deprecated. Make a Structure out of all Variables with the named dimension as their outermost dimension. |
|
StructurePseudo(NetcdfFile ncfile,
Group group,
String shortName,
List<String> varNames,
Dimension dim)
Deprecated. Make a Structure out of named Variables, each has the same named outermost dimension. |
Method Summary | |
---|---|
Array |
reallyRead(Variable mainv,
CancelTask cancelTask)
Deprecated. public by accident, do not call directly. |
Array |
reallyRead(Variable mainv,
Section section,
CancelTask cancelTask)
Deprecated. public by accident, do not call directly. |
boolean |
removeMemberVariable(Variable v)
Deprecated. Remove a Variable : uses the Variable name to find it. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StructurePseudo(NetcdfFile ncfile, Group group, String shortName, Dimension dim)
ncfile
- part of this filegroup
- part of this groupshortName
- short name of this Structuredim
- the existing dimensionpublic StructurePseudo(NetcdfFile ncfile, Group group, String shortName, List<String> varNames, Dimension dim)
ncfile
- part of this filegroup
- part of this groupshortName
- short name of this StructurevarNames
- limited to these variables. all must have dim as outer dimension.dim
- the existing dimensionMethod Detail |
---|
public boolean removeMemberVariable(Variable v)
Structure
removeMemberVariable
in class Structure
v
- remove this variable as a member of this structure
public Array reallyRead(Variable mainv, CancelTask cancelTask) throws IOException
Variable
reallyRead
in interface ProxyReader
reallyRead
in class Variable
mainv
- the client VariablecancelTask
- user may cancel
IOException
- on errorpublic Array reallyRead(Variable mainv, Section section, CancelTask cancelTask) throws IOException, InvalidRangeException
Variable
reallyRead
in interface ProxyReader
reallyRead
in class Variable
mainv
- the client Variablesection
- the section of data to read.cancelTask
- user may cancel
IOException
- on error
InvalidRangeException
- if section has incorrect rank or illegal shape.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |