Package ucar.nc2

Class StructurePseudo

  • All Implemented Interfaces:
    Comparable<ucar.nc2.VariableSimpleIF>, Iterable<ucar.nc2.Attribute>, ucar.nc2.AttributeContainer, ucar.nc2.ProxyReader, ucar.nc2.VariableSimpleIF

    public class StructurePseudo
    extends ucar.nc2.Structure
    Deprecated.
    use ucar.nc2.dataset.StructurePseudoDS
    Make a collection of variables with the same outer dimension into a fake Structure. Its fake because the variables are not stored contiguously.
      so
       var1(dim, other);
       var2(dim, other);
       var3(dim, other);
     becomes
       struct {
         var1(other);
         var2(other);
         var3(other);
       } name(dim);
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class ucar.nc2.Structure

        ucar.nc2.Structure.Builder<T extends ucar.nc2.Structure.Builder<T>>
      • Nested classes/interfaces inherited from class ucar.nc2.Variable

        ucar.nc2.Variable.Cache
    • Field Summary

      • Fields inherited from class ucar.nc2.Structure

        isSubset, members
      • Fields inherited from class ucar.nc2.Variable

        attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isVariableLength, ncfile, permitCaching, proxyReader, shape, sizeToCache, spiObject
      • Fields inherited from class ucar.nc2.CDMNode

        annotations, dodsname, group, immutable, parentstruct, shortName, sort
    • Constructor Summary

      Constructors 
      Constructor Description
      StructurePseudo​(ucar.nc2.NetcdfFile ncfile, ucar.nc2.Group group, String shortName, List<String> varNames, ucar.nc2.Dimension dim)
      Deprecated.
      Make a Structure out of named Variables, each has the same named outermost dimension.
      StructurePseudo​(ucar.nc2.NetcdfFile ncfile, ucar.nc2.Group group, String shortName, ucar.nc2.Dimension dim)
      Deprecated.
      Make a Structure out of all Variables with the named dimension as their outermost dimension.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      ucar.ma2.Array reallyRead​(ucar.nc2.Variable mainv, ucar.ma2.Section section, ucar.nc2.util.CancelTask cancelTask)
      Deprecated.
       
      ucar.ma2.Array reallyRead​(ucar.nc2.Variable mainv, ucar.nc2.util.CancelTask cancelTask)
      Deprecated.
       
      boolean removeMemberVariable​(ucar.nc2.Variable v)
      Deprecated.
       
      • Methods inherited from class ucar.nc2.Structure

        addLocalFieldsToBuilder, addMemberVariable, builder, calcElementSize, calcStructureSize, copy, findVariable, getElementSize, getNameAndAttributes, getNumberOfMemberVariables, getStructureIterator, getStructureIterator, getVariableNames, getVariables, isCaching, isSubset, makeStructureMembers, readStructure, readStructure, readStructure, replaceMemberVariable, select, select, setCaching, setImmutable, setMemberVariables, setParentGroup, toBuilder, writeCDL
      • Methods inherited from class ucar.nc2.Variable

        _read, _read, _readScalarData, addAll, addAttribute, addLocalFieldsToBuilder, attributes, compareTo, createNewCache, equals, extraInfo, findAttribute, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, findAttributeString, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDatasetLocation, getDataType, getDescription, 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, getUnitsString, 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, setName, setProxyReader, setSizeToCache, setSPobject, setValues, setValues, slice, toString, toStringDebug, writeCDL
      • Methods inherited from class ucar.nc2.CDMNode

        annotate, annotation, getDODSName, getFullNameEscaped, getGroup, getImmutable, getName, getShortName, getSort, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrap
      • Methods inherited from interface ucar.nc2.AttributeContainer

        findAttValueIgnoreCase, getName, hasAttribute, hasAttributeIgnoreCase, iterator
      • Methods inherited from interface ucar.nc2.VariableSimpleIF

        getName, getShortName
    • Constructor Detail

      • StructurePseudo

        public StructurePseudo​(ucar.nc2.NetcdfFile ncfile,
                               ucar.nc2.Group group,
                               String shortName,
                               ucar.nc2.Dimension dim)
        Deprecated.
        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
      • StructurePseudo

        public StructurePseudo​(ucar.nc2.NetcdfFile ncfile,
                               ucar.nc2.Group group,
                               String shortName,
                               List<String> varNames,
                               ucar.nc2.Dimension dim)
        Deprecated.
        Make a Structure out of named Variables, each has the same named outermost dimension.
        Parameters:
        ncfile - part of this file
        group - part of this group
        shortName - short name of this Structure
        varNames - limited to these variables. all must have dim as outer dimension.
        dim - the existing dimension
    • Method Detail

      • removeMemberVariable

        public boolean removeMemberVariable​(ucar.nc2.Variable v)
        Deprecated.
        Overrides:
        removeMemberVariable in class ucar.nc2.Structure
      • reallyRead

        public ucar.ma2.Array reallyRead​(ucar.nc2.Variable mainv,
                                         ucar.nc2.util.CancelTask cancelTask)
                                  throws IOException
        Deprecated.
        Specified by:
        reallyRead in interface ucar.nc2.ProxyReader
        Overrides:
        reallyRead in class ucar.nc2.Variable
        Throws:
        IOException
      • reallyRead

        public ucar.ma2.Array reallyRead​(ucar.nc2.Variable mainv,
                                         ucar.ma2.Section section,
                                         ucar.nc2.util.CancelTask cancelTask)
                                  throws IOException,
                                         ucar.ma2.InvalidRangeException
        Deprecated.
        Specified by:
        reallyRead in interface ucar.nc2.ProxyReader
        Overrides:
        reallyRead in class ucar.nc2.Variable
        Throws:
        IOException
        ucar.ma2.InvalidRangeException