Package ucar.nc2.dataset
Class StructureDS
java.lang.Object
ucar.nc2.CDMNode
ucar.nc2.Variable
ucar.nc2.Structure
ucar.nc2.dataset.StructureDS
- All Implemented Interfaces:
Comparable<VariableSimpleIF>,Iterable<Attribute>,AttributeContainer,ucar.nc2.dataset.Enhancements,VariableEnhanced,ProxyReader,VariableSimpleIF
- Direct Known Subclasses:
StructurePseudoDS
An "enhanced" Structure.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStructureDS.Builder<T extends StructureDS.Builder<T>> -
Field Summary
Fields inherited from class ucar.nc2.Variable
defaultCoordsSizeToCache, defaultSizeToCache, permitCaching -
Method Summary
Modifier and TypeMethodDescriptionstatic StructureDS.Builder<?>builder()com.google.common.collect.ImmutableList<CoordinateSystem>Get the list of Coordinate Systems for this Variable.Get the description of the Variable.When this wraps another Variable, get the original Variable's DataType.When this wraps another Variable, get the original Variable's DataType.A StructureDS may wrap another Structure.Get the Unit String for the Variable.reallyRead(Variable client, Section section, CancelTask cancelTask) public by accident, do not call directly.reallyRead(Variable client, 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.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 -
getOriginalVariable
A StructureDS may wrap another Structure.- Specified by:
getOriginalVariablein interfaceVariableEnhanced- Returns:
- original Structure or null
-
getOriginalDataType
When this wraps another Variable, get the original Variable's DataType.- Returns:
- original Variable's DataType
-
getOriginalName
When this wraps another Variable, get the original Variable's DataType.- Specified by:
getOriginalNamein interfaceVariableEnhanced- Returns:
- original Variable's DataType
-
reallyRead
Description copied from class:Variablepublic by accident, do not call directly.- Specified by:
reallyReadin interfaceProxyReader- Overrides:
reallyReadin classVariable- Parameters:
client- the client VariablecancelTask- user may cancel- Returns:
- Array
- Throws:
IOException- on error
-
reallyRead
public Array reallyRead(Variable client, Section section, CancelTask cancelTask) throws IOException, InvalidRangeException Description copied from class:Variablepublic by accident, do not call directly.- Specified by:
reallyReadin interfaceProxyReader- Overrides:
reallyReadin classVariable- Parameters:
client- 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.
-
getCoordinateSystems
Description copied from interface:EnhancementsGet the list of Coordinate Systems for this Variable.- Specified by:
getCoordinateSystemsin interfaceucar.nc2.dataset.Enhancements- Returns:
- list of type CoordinateSystem; may be empty but not null.
-
getDescription
Description copied from class:VariableGet the description of the Variable. Default is to use CDM.LONG_NAME attribute value. If not exist, look for "description", "title", or "standard_name" attribute value (in that order).- Specified by:
getDescriptionin interfaceucar.nc2.dataset.Enhancements- Specified by:
getDescriptionin interfaceVariableSimpleIF- Overrides:
getDescriptionin classVariable- Returns:
- description, or null if not found.
-
getUnitsString
Description copied from class:VariableGet the Unit String for the Variable. Looks for the CDM.UNITS attribute value- Specified by:
getUnitsStringin interfaceucar.nc2.dataset.Enhancements- Specified by:
getUnitsStringin interfaceVariableSimpleIF- Overrides:
getUnitsStringin classVariable- Returns:
- unit string, or null if not found.
-
toBuilder
Description copied from class:StructureTurn into a mutable Builder. Can use toBuilder().build() to copy. -
builder
-