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);
Variable.Cache
Modifier and Type | Field and Description |
---|---|
protected static java.util.Set<NetcdfDataset.Enhance> |
enhanceScaleMissing |
orgVar
defaultBufferSize, isSubset, memberHash, members
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isMetadata, isVariableLength, ncfile, permitCaching, proxyReader, shape, shapeAsSection, sizeToCache, spiObject
annotations, dodsname, group, immutable, parentstruct, shortName, sort
Modifier | Constructor and Description |
---|---|
protected |
StructurePseudoDS(NetcdfDataset ncfile,
Group group,
java.lang.String shortName) |
|
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 |
---|---|
protected Variable |
copy() |
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, convert, convert, enhance, getCoordinateSystems, getDescription, getOriginalDataType, getOriginalName, getOriginalVariable, getUnitsString, removeCoordinateSystem, setName, setOriginalVariable, setUnitsString
addMemberVariable, calcElementSize, calcStructureSize, findVariable, getElementSize, getNameAndAttributes, getNumberOfMemberVariables, getStructureIterator, getStructureIterator, getVariableNames, getVariables, isCaching, isSubset, makeStructureMembers, readStructure, readStructure, readStructure, replaceMemberVariable, select, setCaching, setImmutable, setMemberVariables, setParentGroup, writeCDL
_read, _read, addAll, addAttribute, compareTo, createNewCache, equals, extraInfo, findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDatasetLocation, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getEnumTypedef, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNetcdfFile, getParentGroup, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getShapeNotScalar, getSize, getSizeToCache, getSPobject, hasCachedData, hashCode, hashCodeShow, invalidateCache, isCoordinateVariable, isImmutable, isMetadata, isScalar, isUnknownLength, isUnlimited, isUnsigned, isVariableLength, lookupEnumString, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, readToByteChannel, readToStream, reduce, remove, removeAttribute, removeAttributeIgnoreCase, resetDimensions, resetShape, section, section, setCachedData, setCachedData, setDataType, setDimension, setDimensions, setDimensions, setDimensionsAnonymous, setElementSize, setEnumTypedef, setIsScalar, setProxyReader, setSizeToCache, setSPobject, setUnsigned, setValues, setValues, slice, toString, toStringDebug, writeCDL
annotate, getAnnotation, getAnnotations, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setImmutable, setParentStructure, setShortName, setSort, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getElementSize, getEnumTypedef, 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, toStringDebug
getName
protected static final java.util.Set<NetcdfDataset.Enhance> enhanceScaleMissing
protected StructurePseudoDS(NetcdfDataset ncfile, Group group, java.lang.String shortName)
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 dimensionprotected Variable copy()
copy
in class StructureDS
public Structure select(java.util.List<java.lang.String> memberNames)
Structure
select
in class StructureDS
memberNames
- list of Variable names, already a memberpublic boolean removeMemberVariable(Variable v)
Structure
removeMemberVariable
in class Structure
v
- remove this variable as a member of this structurepublic Array reallyRead(Variable mainv, CancelTask cancelTask) throws java.io.IOException
Variable
reallyRead
in interface ProxyReader
reallyRead
in class StructureDS
mainv
- the client VariablecancelTask
- user may canceljava.io.IOException
- on errorpublic Array reallyRead(Variable mainv, Section section, CancelTask cancelTask) throws java.io.IOException, InvalidRangeException
Variable
reallyRead
in interface ProxyReader
reallyRead
in class StructureDS
mainv
- 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.