public class StructureDS extends Structure implements VariableEnhanced
NetcdfDataset| Modifier and Type | Class and Description |
|---|---|
static class |
StructureDS.Builder<T extends StructureDS.Builder<T>> |
Variable.Cache| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
orgName |
protected Structure |
orgVar |
protected ucar.nc2.dataset.EnhancementsImpl |
proxy |
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isVariableLength, ncfile, permitCaching, proxyReader, shape, sizeToCache, spiObjectannotations, dodsname, group, immutable, parentstruct, shortName, sort| Modifier | Constructor and Description |
|---|---|
|
StructureDS(Group g,
Structure orgVar)
Deprecated.
Use StructureDS.builder()
|
|
StructureDS(NetcdfDataset ds,
Group group,
Structure parentStructure,
java.lang.String shortName,
java.lang.String dims,
java.lang.String units,
java.lang.String desc)
Deprecated.
Use StructureDS.builder()
|
|
StructureDS(NetcdfDataset ds,
Group group,
Structure parent,
java.lang.String shortName,
Structure orgVar)
Deprecated.
Use StructureDS.builder()
|
protected |
StructureDS(NetcdfFile ncfile,
Group group,
java.lang.String shortName)
Deprecated.
Use StructureDS.builder()
|
protected |
StructureDS(StructureDS.Builder<?> builder,
Group parentGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCoordinateSystem(CoordinateSystem p0)
Deprecated.
Use StructureDS.builder()
|
protected StructureDS.Builder<?> |
addLocalFieldsToBuilder(StructureDS.Builder<? extends StructureDS.Builder<?>> b) |
static StructureDS.Builder<?> |
builder() |
void |
clearCoordinateSystems()
Deprecated.
Use StructureDS.builder()
|
protected ArrayStructure |
convert(Array data,
Section section) |
protected StructureData |
convert(StructureData orgData,
int recno) |
protected StructureDS |
copy()
Deprecated.
Use
toBuilder() |
void |
enhance(java.util.Set<NetcdfDataset.Enhance> mode)
Deprecated.
do not use
|
com.google.common.collect.ImmutableList<CoordinateSystem> |
getCoordinateSystems()
Get the list of Coordinate Systems for this Variable.
|
java.lang.String |
getDescription()
Get the description of the Variable.
|
DataType |
getOriginalDataType()
When this wraps another Variable, get the original Variable's DataType.
|
java.lang.String |
getOriginalName()
When this wraps another Variable, get the original Variable's DataType.
|
Variable |
getOriginalVariable()
A StructureDS may wrap another Structure.
|
java.lang.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)
Deprecated.
Use StructureDS.builder()
|
Structure |
select(java.util.List<java.lang.String> memberNames)
Create a subset of the Structure consisting only of the given member variables
|
java.lang.String |
setName(java.lang.String newName)
Deprecated.
|
void |
setOriginalVariable(Variable orgVar)
Deprecated.
Use StructureDS.builder()
|
void |
setUnitsString(java.lang.String units)
Deprecated.
Use StructureDS.builder()
|
StructureDS.Builder<?> |
toBuilder()
Turn into a mutable Builder.
|
addLocalFieldsToBuilder, 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, _readScalarData, addAll, addAttribute, addLocalFieldsToBuilder, attributes, compareTo, createNewCache, equals, extraInfo, findAttribute, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, findAttributeString, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDatasetLocation, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getEnumTypedef, getFileTypeId, getFullName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNetcdfFile, getParentGroup, getParentGroupOrRoot, getParentStructure, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getSize, getSizeToCache, getSPobject, hasCachedData, hashCode, invalidateCache, isCoordinateVariable, isEmpty, isImmutable, isMemberOfStructure, 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, getFullNameEscaped, getGroup, getImmutable, getName, getShortName, getSort, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrapclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFullName, getShortNamegetName, getShortNamefilter, findAttValueIgnoreCase, getName, hasAttribute, hasAttributeIgnoreCase, iteratorprotected ucar.nc2.dataset.EnhancementsImpl proxy
protected Structure orgVar
protected java.lang.String orgName
@Deprecated protected StructureDS(NetcdfFile ncfile, Group group, java.lang.String shortName)
@Deprecated public StructureDS(NetcdfDataset ds, Group group, Structure parentStructure, java.lang.String shortName, java.lang.String dims, java.lang.String units, java.lang.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)@Deprecated public StructureDS(Group g, Structure orgVar)
g - parent grouporgVar - original Structure@Deprecated public StructureDS(NetcdfDataset ds, Group group, Structure parent, java.lang.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.protected StructureDS(StructureDS.Builder<?> builder, Group parentGroup)
@Deprecated protected StructureDS copy()
toBuilder()public Structure select(java.util.List<java.lang.String> memberNames)
Structurepublic Variable getOriginalVariable()
getOriginalVariable in interface VariableEnhanced@Deprecated public void setOriginalVariable(Variable orgVar)
setOriginalVariable in interface VariableEnhancedorgVar - original Variable, must be a Structurepublic DataType getOriginalDataType()
public java.lang.String getOriginalName()
getOriginalName in interface VariableEnhanced@Deprecated public java.lang.String setName(java.lang.String newName)
Variablepublic Array reallyRead(Variable client, CancelTask cancelTask) throws java.io.IOException
VariablereallyRead in interface ProxyReaderreallyRead in class Variableclient - the client VariablecancelTask - user may canceljava.io.IOException - on errorpublic Array reallyRead(Variable client, Section section, CancelTask cancelTask) throws java.io.IOException, InvalidRangeException
VariablereallyRead in interface ProxyReaderreallyRead in class Variableclient - 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.protected ArrayStructure convert(Array data, Section section) throws java.io.IOException
java.io.IOExceptionprotected StructureData convert(StructureData orgData, int recno) throws java.io.IOException
java.io.IOException@Deprecated public void enhance(java.util.Set<NetcdfDataset.Enhance> mode)
enhance in interface VariableEnhanced@Deprecated public void clearCoordinateSystems()
VariableEnhancedclearCoordinateSystems in interface VariableEnhanced@Deprecated public void addCoordinateSystem(CoordinateSystem p0)
EnhancementsaddCoordinateSystem in interface Enhancementsp0 - add this Coordinate System@Deprecated public void removeCoordinateSystem(CoordinateSystem p0)
EnhancementsremoveCoordinateSystem in interface Enhancementsp0 - remove this coordinate systempublic com.google.common.collect.ImmutableList<CoordinateSystem> getCoordinateSystems()
EnhancementsgetCoordinateSystems in interface Enhancementspublic java.lang.String getDescription()
VariablegetDescription in interface EnhancementsgetDescription in interface VariableSimpleIFgetDescription in class Variablepublic java.lang.String getUnitsString()
VariablegetUnitsString in interface EnhancementsgetUnitsString in interface VariableSimpleIFgetUnitsString in class Variable@Deprecated public void setUnitsString(java.lang.String units)
VariableEnhancedsetUnitsString in interface VariableEnhancedunits - unit stringpublic StructureDS.Builder<?> toBuilder()
Structureprotected StructureDS.Builder<?> addLocalFieldsToBuilder(StructureDS.Builder<? extends StructureDS.Builder<?>> b)
public static StructureDS.Builder<?> builder()