Package noaa.coastwatch.util
Class ResamplingDiagnostic.DiagnosticInfo
java.lang.Object
noaa.coastwatch.util.ResamplingDiagnostic.DiagnosticInfo
- Enclosing class:
- ResamplingDiagnostic
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
Modifier and TypeFieldDescriptiondouble
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
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double
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.boolean
Determines if the pixel chosen is the optimal pixel based on the source and optimal source coordinates.
-
Field Details
-
destCoords
public int[] destCoordsThe destination coordinates. -
sourceCoords
public int[] sourceCoordsThe corresponding source coordinates. -
destEarthLoc
The center earth location of the destination pixel. -
optimalDist
public double optimalDistThe 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[] optimalSourceCoordsThe optimal distance source coordinates. -
actualDist
public double actualDistThe 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.
-