ucar.nc2
Class StructurePseudo

java.lang.Object
  extended by ucar.nc2.Variable
      extended by ucar.nc2.Structure
          extended by ucar.nc2.StructurePseudo
All Implemented Interfaces:
VariableIF

public class StructurePseudo
extends Structure

Make a collection of variables with the same outer dimension into a fake Structure. Its fake because the variables are not stored contiguously.

Version:
$Revision:51 $ $Date:2006-07-12 17:13:13Z $
Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.Structure
Structure.Iterator
 
Nested classes/interfaces inherited from class ucar.nc2.Variable
Variable.Cache
 
Field Summary
 
Fields inherited from class ucar.nc2.Structure
memberHash, memberNames, members
 
Fields inherited from class ucar.nc2.Variable
attributes, cache, dataType, debugCaching, defaultSizeToCache, dimensions, elementSize, group, isCoordinateAxis, isMetadata, isSection, isSlice, isVlen, ncfile, orgVar, parent, scalarIndex, sectionRanges, shape, shortName, sizeToCache, sliceDim, sliceRanges
 
Constructor Summary
StructurePseudo(NetcdfFile ncfile, Group group, java.lang.String shortName, Dimension dim)
          Make a Structure out of all Variables with the named dimension as their outermost dimension.
 
Method Summary
protected  Array _read()
           
protected  Array _read(java.util.List section)
           
protected  Array _readMemberData(java.util.List section, boolean flatten)
          Not allowed.
 
Methods inherited from class ucar.nc2.Structure
addMemberVariable, calcElementSize, calcStructureSize, findVariable, getElementSize, getNameAndAttributes, getStructureIterator, getStructureIterator, getVariableNames, getVariables, isCaching, makeStructureMembers, readStructure, readStructure, readStructure, removeMemberVariable, replaceMemberVariable, section, setCaching, setMemberVariables, setParentGroup, toString, writeCDL
 
Methods inherited from class ucar.nc2.Variable
addAttribute, attributes, calcIsCoordinateVariable, equals, extraInfo, findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getCoordinateDimension, getDataType, getDescription, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getIOVar, getName, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getSectionRanges, getShape, getShortName, getSize, getSizeToCache, getSPobject, getUnitsString, hasCachedData, hashCode, invalidateCache, isMemberOfStructure, isMetadata, isScalar, isSection, isUnknownLength, isUnlimited, isUnsigned, isVariableLength, makeSection, makeSectionAddParents, makeSectionRanges, makeSectionWithParents, makeSlice, makeSliceRanges, read, read, read, read, readAllStructures, readAllStructuresSpec, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, remove, replaceDimension, setCachedData, setDataType, setDimension, setDimensions, setDimensions, setDimensionsAnonymous, setElementSize, setIOVar, setIsCoordinateAxis, setName, setParentStructure, setSizeToCache, setSPobject, slice, toStringDebug
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructurePseudo

public StructurePseudo(NetcdfFile ncfile,
                       Group group,
                       java.lang.String shortName,
                       Dimension dim)
Make a Structure out of all Variables with the named dimension as their outermost dimension.

Parameters:
ncfile - part of this file
group - part of this group
shortName - short name of this Structure
dim - the existing dimension
Method Detail

_read

protected Array _read()
               throws java.io.IOException
Overrides:
_read in class Variable
Throws:
java.io.IOException

_read

protected Array _read(java.util.List section)
               throws java.io.IOException,
                      InvalidRangeException
Overrides:
_read in class Variable
Throws:
java.io.IOException
InvalidRangeException

_readMemberData

protected Array _readMemberData(java.util.List section,
                                boolean flatten)
                         throws java.io.IOException,
                                InvalidRangeException
Not allowed.

Overrides:
_readMemberData in class Variable
Throws:
InvalidRangeException
java.io.IOException