Package ucar.nc2.dataset
Class StructurePseudoDS
java.lang.Object
ucar.nc2.CDMNode
ucar.nc2.Variable
ucar.nc2.Structure
ucar.nc2.dataset.StructureDS
ucar.nc2.dataset.StructurePseudoDS
- All Implemented Interfaces:
Comparable<VariableSimpleIF>,Iterable<Attribute>,AttributeContainer,ucar.nc2.dataset.Enhancements,VariableEnhanced,ProxyReader,VariableSimpleIF
- Direct Known Subclasses:
StructurePseudo2Dim
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 ClassesModifier and TypeClassDescriptionstatic classStructurePseudoDS.Builder<T extends StructurePseudoDS.Builder<T>> -
Field Summary
Fields inherited from class ucar.nc2.Variable
defaultCoordsSizeToCache, defaultSizeToCache, permitCaching -
Method Summary
Modifier and TypeMethodDescriptionstatic StructurePseudoDS.Builder<?>builder()reallyRead(Variable mainv, Section section, CancelTask cancelTask) public by accident, do not call directly.reallyRead(Variable mainv, CancelTask cancelTask) public by accident, do not call directly.Create a subset of the Structure consisting only of the given member variablesTurn into a mutable Builder.Methods inherited from class ucar.nc2.dataset.StructureDS
getCoordinateSystems, getDescription, getOriginalDataType, getOriginalName, getOriginalVariable, getUnitsStringMethods inherited from class ucar.nc2.Structure
findVariable, getElementSize, getNameAndAttributes, getNumberOfMemberVariables, getStructureIterator, getStructureIterator, getVariableNames, getVariables, isCaching, isSubset, makeStructureMembers, readStructure, readStructure, select, setCachingMethods inherited from class ucar.nc2.Variable
attributes, compareTo, createNewCache, equals, findAttribute, findAttributeString, findDimensionIndex, getDatasetLocation, getDataType, getDimension, getDimensions, getDimensionsString, getEnumTypedef, getFileTypeId, getFullName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNetcdfFile, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShape, getShapeAsSection, getSize, getSizeToCache, getSPobject, hasCachedData, hashCode, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isVariableLength, lookupEnumString, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, readToStream, reduce, section, section, slice, toString, toStringDebugMethods inherited from class ucar.nc2.CDMNode
getShortNameMethods inherited from interface ucar.nc2.AttributeContainer
findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, getName, hasAttribute, hasAttributeIgnoreCase, isEmpty, iteratorMethods inherited from interface ucar.nc2.dataset.Enhancements
addCoordinateSystem, removeCoordinateSystemMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface ucar.nc2.dataset.VariableEnhanced
getFullName, getShortNameMethods inherited from interface ucar.nc2.VariableSimpleIF
getShortName
-
Method Details
-
select
Description copied from class:StructureCreate a subset of the Structure consisting only of the given member variables- Overrides:
selectin classStructureDS- Parameters:
memberNames- list of Variable names, already a member- Returns:
- Structure containing just those members
-
reallyRead
Description copied from class:Variablepublic by accident, do not call directly.- Specified by:
reallyReadin interfaceProxyReader- Overrides:
reallyReadin classStructureDS- Parameters:
mainv- the client VariablecancelTask- user may cancel- Returns:
- Array
- Throws:
IOException- on error
-
reallyRead
public Array reallyRead(Variable mainv, Section section, CancelTask cancelTask) throws IOException, InvalidRangeException Description copied from class:Variablepublic by accident, do not call directly.- Specified by:
reallyReadin interfaceProxyReader- Overrides:
reallyReadin classStructureDS- Parameters:
mainv- the client Variablesection- the section of data to read.cancelTask- user may cancel- Returns:
- Array
- Throws:
IOException- on errorInvalidRangeException- if section has incorrect rank or illegal shape.
-
toBuilder
Description copied from class:StructureTurn into a mutable Builder. Can use toBuilder().build() to copy.- Overrides:
toBuilderin classStructureDS
-
builder
-