Package noaa.coastwatch.util
Class DirectGridResampler
java.lang.Object
noaa.coastwatch.util.GridResampler
noaa.coastwatch.util.DirectGridResampler
The DirectGridResampler
class performs generic data
resampling between 2D Earth transforms using a direct location
lookup method. The steps are as follows:
- 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.
- 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
-
Field Summary
Fields inherited from class noaa.coastwatch.util.GridResampler
destGrids, destTrans, sourceGrids, sourceTrans
-
Constructor Summary
ConstructorDescriptionDirectGridResampler
(EarthTransform sourceTrans, EarthTransform destTrans) 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
-
DirectGridResampler
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 classGridResampler
- Parameters:
verbose
- true for verbose resampling.
-