Class DirectGridResampler

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

public class DirectGridResampler extends GridResampler

The DirectGridResampler class performs generic data resampling between 2D Earth transforms using a direct location lookup method. The steps are as follows:

  1. For each pixel in the destination grid, compute the lat/lon using the destination Earth transform, then the source grid coordinates using the source Earth transform.
  2. Transfer the data from the source to the destination at the specified location.

This class is best suited for working with source and destination EarthTransform objects that compute forward and inverse transforms relatively quickly.

WARNING: This class is not thread-safe.

Since:
3.3.2
Author:
Peter Hollemans
  • Constructor Details

    • DirectGridResampler

      public DirectGridResampler(EarthTransform sourceTrans, EarthTransform destTrans)
      Creates a new grid resampler from the specified source and destination transforms.
      Parameters:
      sourceTrans - the source Earth transform.
      destTrans - the destination Earth transform.
      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.