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:
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.
destGrids, destTrans, sourceGrids, sourceTrans
Constructor and Description |
---|
DirectGridResampler(EarthTransform sourceTrans,
EarthTransform destTrans)
Creates a new grid resampler from the specified source and
destination transforms.
|
Modifier and Type | Method and Description |
---|---|
void |
perform(boolean verbose)
Performs the resampling operation on all source / destination
pairs.
|
addGrid
public DirectGridResampler(EarthTransform sourceTrans, EarthTransform destTrans)
sourceTrans
- the source Earth transform.destTrans
- the destination Earth transform.LocationEstimator
public void perform(boolean verbose)
GridResampler
perform
in class GridResampler
verbose
- true for verbose resampling.