Class StructureDS

java.lang.Object
ucar.nc2.CDMNode
ucar.nc2.Variable
ucar.nc2.Structure
ucar.nc2.dataset.StructureDS
All Implemented Interfaces:
Comparable<VariableSimpleIF>, Iterable<Attribute>, AttributeContainer, ucar.nc2.dataset.Enhancements, VariableEnhanced, ProxyReader, VariableSimpleIF
Direct Known Subclasses:
StructurePseudoDS

public class StructureDS extends Structure implements VariableEnhanced
An "enhanced" Structure.
See Also:
  • Method Details

    • 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 Structure
      Parameters:
      memberNames - list of Variable names, already a member
      Returns:
      Structure containing just those members
    • getOriginalVariable

      public Variable getOriginalVariable()
      A StructureDS may wrap another Structure.
      Specified by:
      getOriginalVariable in interface VariableEnhanced
      Returns:
      original Structure or null
    • getOriginalDataType

      public DataType getOriginalDataType()
      When this wraps another Variable, get the original Variable's DataType.
      Returns:
      original Variable's DataType
    • getOriginalName

      public String getOriginalName()
      When this wraps another Variable, get the original Variable's DataType.
      Specified by:
      getOriginalName in interface VariableEnhanced
      Returns:
      original Variable's DataType
    • reallyRead

      public Array reallyRead(Variable client, CancelTask cancelTask) throws IOException
      Description copied from class: Variable
      public by accident, do not call directly.
      Specified by:
      reallyRead in interface ProxyReader
      Overrides:
      reallyRead in class Variable
      Parameters:
      client - the client Variable
      cancelTask - user may cancel
      Returns:
      Array
      Throws:
      IOException - on error
    • reallyRead

      public Array reallyRead(Variable client, Section section, CancelTask cancelTask) throws IOException, InvalidRangeException
      Description copied from class: Variable
      public by accident, do not call directly.
      Specified by:
      reallyRead in interface ProxyReader
      Overrides:
      reallyRead in class Variable
      Parameters:
      client - the client Variable
      section - the section of data to read.
      cancelTask - user may cancel
      Returns:
      Array
      Throws:
      IOException - on error
      InvalidRangeException - if section has incorrect rank or illegal shape.
    • getCoordinateSystems

      public com.google.common.collect.ImmutableList<CoordinateSystem> getCoordinateSystems()
      Description copied from interface: Enhancements
      Get the list of Coordinate Systems for this Variable.
      Specified by:
      getCoordinateSystems in interface ucar.nc2.dataset.Enhancements
      Returns:
      list of type CoordinateSystem; may be empty but not null.
    • getDescription

      public String getDescription()
      Description copied from class: Variable
      Get the description of the Variable. Default is to use CDM.LONG_NAME attribute value. If not exist, look for "description", "title", or "standard_name" attribute value (in that order).
      Specified by:
      getDescription in interface ucar.nc2.dataset.Enhancements
      Specified by:
      getDescription in interface VariableSimpleIF
      Overrides:
      getDescription in class Variable
      Returns:
      description, or null if not found.
    • getUnitsString

      public String getUnitsString()
      Description copied from class: Variable
      Get the Unit String for the Variable. Looks for the CDM.UNITS attribute value
      Specified by:
      getUnitsString in interface ucar.nc2.dataset.Enhancements
      Specified by:
      getUnitsString in interface VariableSimpleIF
      Overrides:
      getUnitsString in class Variable
      Returns:
      unit string, or null if not found.
    • toBuilder

      public StructureDS.Builder<?> toBuilder()
      Description copied from class: Structure
      Turn into a mutable Builder. Can use toBuilder().build() to copy.
      Overrides:
      toBuilder in class Structure
    • builder

      public static StructureDS.Builder<?> builder()