public class StructurePseudoDS extends StructureDS
so
var1(dim, other);
var2(dim, other);
var3(dim, other);
becomes
struct {
var1(other);
var2(other);
var3(other);
} name(dim);
defaultCoordsSizeToCache, defaultSizeToCache| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
addCoordinateSystem, clearCoordinateSystems, enhance, getCoordinateSystems, getDescription, getOriginalDataType, getOriginalName, getOriginalVariable, getUnitsString, removeCoordinateSystem, setName, setOriginalVariable, setUnitsStringaddMemberVariable, calcElementSize, findVariable, getElementSize, getNameAndAttributes, getNumberOfMemberVariables, getStructureIterator, getStructureIterator, getVariableNames, getVariables, isCaching, isSubset, makeStructureMembers, readStructure, readStructure, readStructure, replaceMemberVariable, select, setCaching, setImmutable, setMemberVariables, setParentGroupaddAttribute, clone, compareTo, createNewCache, equals, findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getEnumTypedef, getFullName, getFullNameEscaped, getName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentStructure, getProxyReader, getRanges, getRank, getShape, getShape, getShapeAll, getShapeAsSection, getShortName, getSize, getSizeToCache, getSPobject, hasCachedData, hashCode, invalidateCache, isCoordinateVariable, isImmutable, isMemberOfStructure, isMetadata, isScalar, isUnknownLength, isUnlimited, isUnsigned, isVariableLength, lookupEnumString, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, readToByteChannel, remove, removeAttribute, removeAttributeIgnoreCase, resetDimensions, resetShape, section, section, setCachedData, setCachedData, setDataType, setDimension, setDimensions, setDimensions, setDimensionsAnonymous, setElementSize, setEnumTypedef, setIsScalar, setParentStructure, setProxyReader, setSizeToCache, setSPobject, setValues, setValues, slice, toString, toStringDebug, writeCDLfindAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getElementSize, getFullName, getFullNameEscaped, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShapeAsSection, getShortName, getSize, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isUnsigned, isVariableLength, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, section, toStringDebuggetNamepublic 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 dimensionpublic Structure select(java.util.List<java.lang.String> memberNames)
Structureselect in class StructureDSmemberNames - list of Variable names, already a memberpublic boolean removeMemberVariable(Variable v)
StructureremoveMemberVariable in class Structurev - remove this variable as a member of this structurepublic Array reallyRead(Variable mainv, CancelTask cancelTask) throws java.io.IOException
VariablereallyRead in interface ProxyReaderreallyRead in class StructureDSmainv - the client VariablecancelTask - user may canceljava.io.IOException - on errorpublic Array reallyRead(Variable mainv, Section section, CancelTask cancelTask) throws java.io.IOException, InvalidRangeException
VariablereallyRead in interface ProxyReaderreallyRead in class StructureDSmainv - the client Variablesection - the section of data to read.cancelTask - user may canceljava.io.IOException - on errorInvalidRangeException - if section has incorrect rank or illegal shape.