ucar.nc2.dataset
Class StructurePseudo2Dim

java.lang.Object
  extended by ucar.nc2.Variable
      extended by ucar.nc2.Structure
          extended by ucar.nc2.dataset.StructureDS
              extended by ucar.nc2.dataset.StructurePseudoDS
                  extended by ucar.nc2.dataset.StructurePseudo2Dim
All Implemented Interfaces:
Comparable<VariableSimpleIF>, Enhancements, VariableEnhanced, ProxyReader, VariableIF, VariableSimpleIF

public class StructurePseudo2Dim
extends StructurePseudoDS

Make a collection of variables with the same 2 outer dimensions into a fake 2D Structure(outer,inner)

Since:
Oct 21, 2009
Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.Variable
Variable.Cache
 
Field Summary
 
Fields inherited from class ucar.nc2.dataset.StructurePseudoDS
enhanceScaleMissing
 
Fields inherited from class ucar.nc2.dataset.StructureDS
orgVar
 
Fields inherited from class ucar.nc2.Structure
defaultBufferSize, isSubset, memberHash, members
 
Fields inherited from class ucar.nc2.Variable
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, group, hashCode, isMetadata, isVariableLength, ncfile, parent, proxyReader, shape, shapeAsSection, shortName, sizeToCache, spiObject
 
Constructor Summary
StructurePseudo2Dim(NetcdfDataset ncfile, Group group, String shortName, List<String> varNames, Dimension outer, Dimension inner)
          Make a Structure out of named Variables which have var(outer, inner, ...)
 
Method Summary
protected  Array _read(Section section)
           
 Structure select(List<String> memberNames)
          Create a subset of the Structure consisting only of the given member variables
 
Methods inherited from class ucar.nc2.dataset.StructurePseudoDS
copy, reallyRead, reallyRead, removeMemberVariable
 
Methods inherited from class ucar.nc2.dataset.StructureDS
addCoordinateSystem, clearCoordinateSystems, convert, convert, enhance, getCoordinateSystems, getDescription, getOriginalDataType, getOriginalName, getOriginalVariable, getUnitsString, removeCoordinateSystem, setName, setOriginalVariable, setUnitsString
 
Methods inherited from class ucar.nc2.Structure
addMemberVariable, calcElementSize, calcStructureSize, findVariable, getElementSize, getNameAndAttributes, getNumberOfMemberVariables, getStructureIterator, getStructureIterator, getVariableNames, getVariables, isCaching, isSubset, makeStructureMembers, readStructure, readStructure, readStructure, replaceMemberVariable, select, setCaching, setImmutable, setMemberVariables, setParentGroup, writeCDL
 
Methods inherited from class ucar.nc2.Variable
_read, addAttribute, clone, compareTo, createNewCache, equals, extraInfo, findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getEnumTypedef, getFullName, getFullNameEscaped, getName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentStructure, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getShortName, getSize, getSizeToCache, getSPobject, hasCachedData, hashCode, invalidateCache, isCoordinateVariable, isImmutable, isMemberOfStructure, isMetadata, isScalar, isUnknownLength, isUnlimited, isUnsigned, isVariableLength, lookupEnumString, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, readToByteChannel, remove, removeAttribute, removeAttributeIgnoreCase, resetDimensions, resetShape, section, section, setCachedData, setCachedData, setDataType, setDimension, setDimensions, setDimensions, setDimensionsAnonymous, setElementSize, setEnumTypedef, setIsScalar, setParentStructure, setProxyReader, setSizeToCache, setSPobject, setValues, setValues, slice, toString, toStringDebug, writeCDL
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.nc2.VariableIF
findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getElementSize, getFullName, getFullNameEscaped, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShapeAsSection, getShortName, getSize, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isUnsigned, isVariableLength, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, section, toStringDebug
 
Methods inherited from interface ucar.nc2.VariableSimpleIF
getName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

StructurePseudo2Dim

public StructurePseudo2Dim(NetcdfDataset ncfile,
                           Group group,
                           String shortName,
                           List<String> varNames,
                           Dimension outer,
                           Dimension inner)
Make a Structure out of named Variables which have var(outer, inner, ...)

Parameters:
ncfile - the contaning file
group - the containing group, if null use root group
shortName - short name of this Structure
varNames - limited to these variables. all must var(outer, inner, ...). If null, then find all such variables.
outer - the outer dimension, may not be null
inner - the inner dimension, may not be null
Method Detail

select

public Structure select(List<String> memberNames)
Description copied from class: Structure
Create a subset of the Structure consisting only of the given member variables

Overrides:
select in class StructurePseudoDS
Parameters:
memberNames - list of Variable names, already a member
Returns:
Structure containing just those members

_read

protected Array _read(Section section)
               throws IOException,
                      InvalidRangeException
Overrides:
_read in class Variable
Throws:
IOException
InvalidRangeException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.