public class StructureDS extends Structure implements VariableEnhanced
NetcdfDatasetVariable.Cache| Modifier and Type | Field and Description |
|---|---|
protected Structure |
orgVar |
defaultBufferSize, isSubset, log, memberHash, membersattributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isMetadata, isVariableLength, ncfile, permitCaching, proxyReader, shape, shapeAsSection, sizeToCache, spiObjectannotations, dodsname, group, immutable, parentstruct, shortName, sort| Modifier | Constructor and Description |
|---|---|
|
StructureDS(Group g,
Structure orgVar)
Create a StructureDS thats wraps a Structure
|
|
StructureDS(NetcdfDataset ds,
Group group,
Structure parentStructure,
String shortName,
String dims,
String units,
String desc)
Constructor when theres no underlying variable.
|
|
StructureDS(NetcdfDataset ds,
Group group,
Structure parent,
String shortName,
Structure orgVar)
Wrap the given Structure, making it into a StructureDS.
|
protected |
StructureDS(NetcdfFile ncfile,
Group group,
String shortName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCoordinateSystem(CoordinateSystem p0)
Add a CoordinateSystem to the dataset.
|
void |
clearCoordinateSystems()
clear previous coordinate systems.
|
protected ArrayStructure |
convert(Array data,
Section section) |
protected StructureData |
convert(StructureData orgData,
int recno) |
protected Variable |
copy() |
void |
enhance(Set<NetcdfDataset.Enhance> mode)
DO NOT USE DIRECTLY.
|
List<CoordinateSystem> |
getCoordinateSystems()
Get the list of Coordinate Systems for this Variable.
|
String |
getDescription()
Get the description of the Variable.
|
DataType |
getOriginalDataType()
When this wraps another Variable, get the original Variable's DataType.
|
String |
getOriginalName()
When this wraps another Variable, get the original Variable's DataType.
|
Variable |
getOriginalVariable()
A StructureDS may wrap another Structure.
|
String |
getUnitsString()
Get the Unit String for the Variable.
|
Array |
reallyRead(Variable client,
CancelTask cancelTask)
public by accident, do not call directly.
|
Array |
reallyRead(Variable client,
Section section,
CancelTask cancelTask)
public by accident, do not call directly.
|
void |
removeCoordinateSystem(CoordinateSystem p0)
Remove a CoordinateSystem from the dataset.
|
Structure |
select(List<String> memberNames)
Create a subset of the Structure consisting only of the given member variables
|
String |
setName(String newName)
Set the short name, converting to valid CDM object name if needed.
|
void |
setOriginalVariable(Variable orgVar)
Set the Structure to wrap.
|
void |
setUnitsString(String units)
Set the Unit String for this Variable.
|
addMemberVariable, calcElementSize, calcStructureSize, findVariable, getElementSize, getNameAndAttributes, getNumberOfMemberVariables, getStructureIterator, getStructureIterator, getVariableNames, getVariables, isCaching, isSubset, makeStructureMembers, readStructure, readStructure, readStructure, removeMemberVariable, replaceMemberVariable, select, setCaching, setImmutable, setMemberVariables, setParentGroup, writeCDL_read, _read, addAll, addAttribute, compareTo, createNewCache, equals, extraInfo, findAttribute, findAttributeIgnoreCase, findAttValueIgnoreCase, findDimensionIndex, getAttributeContainer, 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, 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, setValues, setValues, slice, toString, toStringDebug, writeCDLannotate, annotation, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrapclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindAttribute, 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, isVariableLength, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, section, toStringDebuggetNamecompareTogetNameprotected Structure orgVar
protected StructureDS(NetcdfFile ncfile, Group group, String shortName)
public StructureDS(NetcdfDataset ds, Group group, Structure parentStructure, String shortName, String dims, String units, String desc)
ds - the containing NetcdfDataset.group - the containing group; if null, use rootGroupparentStructure - parent Structure, may be nullshortName - variable shortName, must be unique within the Groupdims - list of dimension names, space delimitedunits - unit string (may be null)desc - description (may be null)public StructureDS(Group g, Structure orgVar)
g - parent grouporgVar - original Structurepublic StructureDS(NetcdfDataset ds, Group group, Structure parent, String shortName, Structure orgVar)
ds - the containing NetcdfDataset.group - the containing group; may not be nullparent - parent Structure, may be nullshortName - variable shortName, must be unique within the GrouporgVar - the original Structure to wrap.public Structure select(List<String> memberNames)
Structurepublic Variable getOriginalVariable()
getOriginalVariable in interface VariableEnhancedpublic void setOriginalVariable(Variable orgVar)
setOriginalVariable in interface VariableEnhancedorgVar - original Variable, must be a Structurepublic DataType getOriginalDataType()
public String getOriginalName()
getOriginalName in interface VariableEnhancedpublic String setName(String newName)
Variablepublic Array reallyRead(Variable client, CancelTask cancelTask) throws IOException
VariablereallyRead in interface ProxyReaderreallyRead in class Variableclient - the client VariablecancelTask - user may cancelIOException - on errorpublic Array reallyRead(Variable client, Section section, CancelTask cancelTask) throws IOException, InvalidRangeException
VariablereallyRead in interface ProxyReaderreallyRead in class Variableclient - the client Variablesection - the section of data to read.cancelTask - user may cancelIOException - on errorInvalidRangeException - if section has incorrect rank or illegal shape.protected ArrayStructure convert(Array data, Section section) throws IOException
IOExceptionprotected StructureData convert(StructureData orgData, int recno) throws IOException
IOExceptionpublic void enhance(Set<NetcdfDataset.Enhance> mode)
enhance in interface VariableEnhancedpublic void clearCoordinateSystems()
VariableEnhancedclearCoordinateSystems in interface VariableEnhancedpublic void addCoordinateSystem(CoordinateSystem p0)
EnhancementsaddCoordinateSystem in interface Enhancementsp0 - add this Coordinate Systempublic void removeCoordinateSystem(CoordinateSystem p0)
EnhancementsremoveCoordinateSystem in interface Enhancementsp0 - remove this coordinate systempublic List<CoordinateSystem> getCoordinateSystems()
EnhancementsgetCoordinateSystems in interface Enhancementspublic String getDescription()
VariablegetDescription in interface EnhancementsgetDescription in interface VariableIFgetDescription in interface VariableSimpleIFgetDescription in class Variablepublic String getUnitsString()
VariablegetUnitsString in interface EnhancementsgetUnitsString in interface VariableIFgetUnitsString in interface VariableSimpleIFgetUnitsString in class Variablepublic void setUnitsString(String units)
VariableEnhancedsetUnitsString in interface VariableEnhancedunits - unit string