Class InverseGridResampler

java.lang.Object
noaa.coastwatch.util.GridResampler
noaa.coastwatch.util.InverseGridResampler

public class InverseGridResampler extends GridResampler
The InverseGridResampler class performs generic data resampling between 2D earth transforms using an inverse location lookup method. The steps are as follows:
  1. The destination grid is divided into rectangles of a bounded physical size.
  2. For each rectangle in the destination grid, a polynomial function is derived that maps from destination grid coordinates to source grid coordinates.
  3. For each coordinate in the destination grid, a source coordinate is computed and data from the source grid transferred to the destination.
WARNING: This class is not thread-safe.
Since:
3.1.9
Author:
Peter Hollemans
  • Constructor Details

    • InverseGridResampler

      public InverseGridResampler(EarthTransform sourceTrans, EarthTransform destTrans, double polySize)
      Creates a new grid resampler from the specified source and destination transforms.
      Parameters:
      sourceTrans - the source earth transform.
      destTrans - the destination earth transform.
      polySize - the estimation polynomial size in kilometers.
      See Also:
  • Method Details

    • perform

      public void perform(boolean verbose)
      Description copied from class: GridResampler
      Performs the resampling operation on all source / destination pairs.
      Specified by:
      perform in class GridResampler
      Parameters:
      verbose - true for verbose resampling.