Package noaa.coastwatch.util
Class InverseGridResampler
java.lang.Object
noaa.coastwatch.util.GridResampler
noaa.coastwatch.util.InverseGridResampler
The
InverseGridResampler
class performs generic data
resampling between 2D earth transforms using an inverse location
lookup method. The steps are as follows:
- The destination grid is divided into rectangles of a bounded physical size.
- For each rectangle in the destination grid, a polynomial function is derived that maps from destination grid coordinates to source grid coordinates.
- For each coordinate in the destination grid, a source coordinate is computed and data from the source grid transferred to the destination.
- Since:
- 3.1.9
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.util.GridResampler
destGrids, destTrans, sourceGrids, sourceTrans
-
Constructor Summary
ConstructorDescriptionInverseGridResampler
(EarthTransform sourceTrans, EarthTransform destTrans, double polySize) Creates a new grid resampler from the specified source and destination transforms. -
Method Summary
Modifier and TypeMethodDescriptionvoid
perform
(boolean verbose) Performs the resampling operation on all source / destination pairs.Methods inherited from class noaa.coastwatch.util.GridResampler
addGrid
-
Constructor Details
-
InverseGridResampler
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 classGridResampler
- Parameters:
verbose
- true for verbose resampling.
-