Class ResamplingDiagnostic.DiagnosticInfo

java.lang.Object
noaa.coastwatch.util.ResamplingDiagnostic.DiagnosticInfo
Enclosing class:
ResamplingDiagnostic

public static class ResamplingDiagnostic.DiagnosticInfo extends Object
Holds an individual diagnostic information value. Each value represents the data for a single remapped location from the source to destination transform. The data is generated from an instance of a remapping, and used in generating statistics.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The actual distance in kilometers from the center of the destination pixel to center of source pixel, as was specified by the remapping.
    int[]
    The destination coordinates.
    The center earth location of the destination pixel.
    double
    The distance in kilometers from center of destination pixel to center of optimal source pixel.
    int[]
    The optimal distance source coordinates.
    int[]
    The corresponding source coordinates.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    double
     
    double
    Gets the omega normalized error index, defined as 1 - (dist-opt)/(dist+opt) where dist is the remapped pixel distance and opt is the optimal pixel distance.
    boolean
    Determines if the pixel chosen is the optimal pixel based on the source and optimal source coordinates.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • destCoords

      public int[] destCoords
      The destination coordinates.
    • sourceCoords

      public int[] sourceCoords
      The corresponding source coordinates.
    • destEarthLoc

      public EarthLocation destEarthLoc
      The center earth location of the destination pixel.
    • optimalDist

      public double optimalDist
      The distance in kilometers from center of destination pixel to center of optimal source pixel. The optimal source pixel is the one that has the least distance possible of all pixels in the source transform.
    • optimalSourceCoords

      public int[] optimalSourceCoords
      The optimal distance source coordinates.
    • actualDist

      public double actualDist
      The actual distance in kilometers from the center of the destination pixel to center of source pixel, as was specified by the remapping.
  • Constructor Details

    • DiagnosticInfo

      public DiagnosticInfo()
  • Method Details

    • isOptimal

      public boolean isOptimal()
      Determines if the pixel chosen is the optimal pixel based on the source and optimal source coordinates.
      Returns:
      true if the pixel is the optimal, or false if not.
    • getDistance

      public double getDistance()
    • getDistanceError

      public double getDistanceError()
    • getOmega

      public double getOmega()
      Gets the omega normalized error index, defined as 1 - (dist-opt)/(dist+opt) where dist is the remapped pixel distance and opt is the optimal pixel distance. Omega is a normalized error, whose value is 1 when the pixel chosen for the remapping is the optimal pixel, or < 1 otherwise. If both the distance and optimal distance are zero, omega is 1.
      Returns:
      the omega value.