Class CoordinateTransform

java.lang.Object
ucar.nc2.dataset.CoordinateTransform
All Implemented Interfaces:
Comparable<CoordinateTransform>
Direct Known Subclasses:
ProjectionCT, VerticalCT

@ThreadSafe public class CoordinateTransform extends Object implements Comparable<CoordinateTransform>
A CoordinateTransform is an abstraction of a function from a CoordinateSystem to a "reference" CoordinateSystem. CoordinateTransform is the superclass for ProjectionCT and VerticalCT. It contains the Attributes/Parameters needed to make a "Coordinate Transform Variable" which is just a container for the Transform parameters. LOOK this should be abstract.
  • Constructor Details

    • CoordinateTransform

      @Deprecated public CoordinateTransform(String name, String authority, TransformType transformType)
      Deprecated.
      Use CoordinateTransform.builder()
      Create a Coordinate Transform.
      Parameters:
      name - name of transform, must be unique within the NcML.
      authority - naming authority
      transformType - type of transform.
  • Method Details

    • addParameter

      @Deprecated public void addParameter(ucar.unidata.util.Parameter param)
      Deprecated.
      Use CoordinateTransform.builder()
      add a parameter
      Parameters:
      param - add this Parameter
    • getName

      public String getName()
    • getAttributeContainer

      public AttributeContainer getAttributeContainer()
    • getAuthority

      public String getAuthority()
    • getTransformType

      public TransformType getTransformType()
    • getParameters

      public com.google.common.collect.ImmutableList<ucar.unidata.util.Parameter> getParameters()
    • findParameterIgnoreCase

      public ucar.unidata.util.Parameter findParameterIgnoreCase(String name)
      Convenience function; look up Parameter by name, ignoring case.
      Parameters:
      name - the name of the attribute
      Returns:
      the Attribute, or null if not found
    • equals

      public boolean equals(Object oo)
      Instances which have same name, authority and parameters are equal.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Override Object.hashCode() to be consistent with equals.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(CoordinateTransform oct)
      Specified by:
      compareTo in interface Comparable<CoordinateTransform>
    • toBuilder

      public CoordinateTransform.Builder<?> toBuilder()
    • builder

      public static CoordinateTransform.Builder<?> builder()
      Get Builder for this class that allows subclassing.
      See Also:
      • "https://community.oracle.com/blogs/emcmanus/2010/10/24/using-builder-pattern-subclasses"