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);
Modifier and Type | Class and Description |
---|---|
static class |
StructurePseudoDS.Builder<T extends StructurePseudoDS.Builder<T>> |
Variable.Cache
Modifier and Type | Field and Description |
---|---|
protected static java.util.Set<NetcdfDataset.Enhance> |
enhanceScaleMissing |
protected java.util.List<Variable> |
orgVariables |
orgName, orgVar, proxy
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isVariableLength, ncfile, permitCaching, proxyReader, shape, sizeToCache, spiObject
annotations, dodsname, group, immutable, parentstruct, shortName, sort
Modifier | Constructor and Description |
---|---|
protected |
StructurePseudoDS(NetcdfDataset ncfile,
Group group,
java.lang.String shortName)
Deprecated.
Use StructurePseudoDS.builder()
|
|
StructurePseudoDS(NetcdfDataset ncfile,
Group group,
java.lang.String shortName,
java.util.List<java.lang.String> varNames,
Dimension outerDim)
Deprecated.
Use StructurePseudoDS.builder()
|
protected |
StructurePseudoDS(StructurePseudoDS.Builder<?> builder,
Group parentGroup) |
Modifier and Type | Method and Description |
---|---|
protected StructurePseudoDS.Builder<?> |
addLocalFieldsToBuilder(StructurePseudoDS.Builder<? extends StructurePseudoDS.Builder<?>> b) |
static StructurePseudoDS.Builder<?> |
builder() |
protected StructureDS |
copy()
Deprecated.
Use
toBuilder() |
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)
Deprecated.
Use StructurePseudoDS.builder()
|
Structure |
select(java.util.List<java.lang.String> memberNames)
Create a subset of the Structure consisting only of the given member variables
|
StructurePseudoDS.Builder<?> |
toBuilder()
Turn into a mutable Builder.
|
addCoordinateSystem, addLocalFieldsToBuilder, clearCoordinateSystems, convert, convert, enhance, getCoordinateSystems, getDescription, getOriginalDataType, getOriginalName, getOriginalVariable, getUnitsString, removeCoordinateSystem, setName, setOriginalVariable, setUnitsString
addLocalFieldsToBuilder, 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, _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, writeCDL
annotate, annotation, getDODSName, getFullNameEscaped, getGroup, getImmutable, getName, getShortName, getSort, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFullName, getShortName
getName, getShortName
filter, findAttValueIgnoreCase, getName, hasAttribute, hasAttributeIgnoreCase, iterator
protected static final java.util.Set<NetcdfDataset.Enhance> enhanceScaleMissing
protected java.util.List<Variable> orgVariables
@Deprecated protected StructurePseudoDS(NetcdfDataset ncfile, Group group, java.lang.String shortName)
@Deprecated 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 StructurePseudoDS(StructurePseudoDS.Builder<?> builder, Group parentGroup)
@Deprecated protected StructureDS copy()
toBuilder()
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 member@Deprecated public 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.public StructurePseudoDS.Builder<?> toBuilder()
Structure
toBuilder
in class StructureDS
protected StructurePseudoDS.Builder<?> addLocalFieldsToBuilder(StructurePseudoDS.Builder<? extends StructurePseudoDS.Builder<?>> b)
public static StructurePseudoDS.Builder<?> builder()