|
||||||||||
| 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);
| Field Summary |
|---|
| Fields inherited from class ucar.nc2.Variable |
|---|
defaultCoordsSizeToCache, defaultSizeToCache |
| Constructor Summary | |
|---|---|
StructurePseudo(NetcdfFile ncfile,
Group group,
java.lang.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,
java.lang.String shortName,
java.util.List<java.lang.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 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StructurePseudo(NetcdfFile ncfile,
Group group,
java.lang.String shortName,
Dimension dim)
ncfile - part of this filegroup - part of this groupshortName - short name of this Structuredim - the existing dimension
public StructurePseudo(NetcdfFile ncfile,
Group group,
java.lang.String shortName,
java.util.List<java.lang.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 dimension| Method Detail |
|---|
public boolean removeMemberVariable(Variable v)
Structure
removeMemberVariable in class Structurev - remove this variable as a member of this structure
public Array reallyRead(Variable mainv,
CancelTask cancelTask)
throws java.io.IOException
Variable
reallyRead in interface ProxyReaderreallyRead in class Variablemainv - the client VariablecancelTask - user may cancel
java.io.IOException - on error
public Array reallyRead(Variable mainv,
Section section,
CancelTask cancelTask)
throws java.io.IOException,
InvalidRangeException
Variable
reallyRead in interface ProxyReaderreallyRead in class Variablemainv - the client Variablesection - the section of data to read.cancelTask - user may cancel
java.io.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 | |||||||||