Class NOAA1bReader.LongitudeInterpolator

java.lang.Object
noaa.coastwatch.util.Function
noaa.coastwatch.io.NOAA1bReader.LongitudeInterpolator
All Implemented Interfaces:
Encodable
Enclosing class:
NOAA1bReader

public static class NOAA1bReader.LongitudeInterpolator extends Function
The LongitudeInterpolator class performs longitude interpolation using polar coordinates. This helps to avoid problems with longitude interpolation near the poles where simple Lagrangian interpolation along the scan line causes interpolation anomalies.
  • Constructor Details

    • LongitudeInterpolator

      public LongitudeInterpolator(int[] sampleIndex, float[] latData, float[] lonData)
      Creates a new interpolator.
      Parameters:
      sampleIndex - the array of sample indices.
      latData - the array of latitude data.
      lonData - the array of longitude data.
  • Method Details

    • evaluate

      public double evaluate(double[] variables)
      Description copied from class: Function
      Evalutes a function value with the specified inputs.
      Specified by:
      evaluate in class Function
      Parameters:
      variables - the array of input variable values.
      Returns:
      the evaluated function value. If an error occurred during evaluation, the return value is Double.NaN.