|
||||||||||
| 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.StructurePseudoDS
public class StructurePseudoDS
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 | |
|---|---|
StructurePseudoDS(NetcdfDataset ncfile,
Group group,
java.lang.String shortName,
java.util.List<java.lang.String> varNames,
Dimension outerDim)
Make a Structure out of all Variables with the named dimension as their outermost dimension, or from a list named Variables, each has the same named outermost dimension. |
|
| Method Summary | |
|---|---|
Array |
reallyRead(Variable mainv,
CancelTask cancelTask)
public by accident, do not call directly. |
Array |
reallyRead(Variable mainv,
Section section,
CancelTask cancelTask)
public by accident, do not call directly. |
boolean |
removeMemberVariable(Variable v)
Remove a Variable : uses the Variable name to find it. |
Structure |
select(java.util.List<java.lang.String> memberNames)
Create a subset of the Structure consisting only of the given member variables |
| Methods inherited from class ucar.nc2.dataset.StructureDS |
|---|
addCoordinateSystem, clearCoordinateSystems, enhance, getCoordinateSystems, getDescription, getOriginalDataType, getOriginalName, getOriginalVariable, getUnitsString, removeCoordinateSystem, setName, setOriginalVariable, setUnitsString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public StructurePseudoDS(NetcdfDataset ncfile,
Group group,
java.lang.String shortName,
java.util.List<java.lang.String> varNames,
Dimension outerDim)
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. If null, use all Variables
with that outer dimensionouterDim - existing, outer dimension| Method Detail |
|---|
public Structure select(java.util.List<java.lang.String> memberNames)
Structure
select in class StructureDSmemberNames - list of Variable names, already a member
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 StructureDSmainv - 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 StructureDSmainv - 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 | |||||||||