public abstract class GridResampler
extends java.lang.Object
GridResampler
class performs generic data
resampling between 2D earth transforms. The method that actually
performs the resampling is left to the child class. The user must
provide source and destination earth transforms, and pairs of
source/destination grids (possibly more than one pair). The
resampling is performed on all source / destination grid pairs
simultaneously. Note that all source grids must have the same
dimensions and navigation transform, and all destination grids
must have the same dimensions.Modifier and Type | Field and Description |
---|---|
protected java.util.List<Grid> |
destGrids
The list of destination grids.
|
protected EarthTransform |
destTrans
The destination earth transform.
|
protected java.util.List<Grid> |
sourceGrids
The list of source grids.
|
protected EarthTransform |
sourceTrans
The source earth transform.
|
Constructor and Description |
---|
GridResampler(EarthTransform sourceTrans,
EarthTransform destTrans)
Creates a new grid resampler from the specified source and
destination transforms.
|
Modifier and Type | Method and Description |
---|---|
void |
addGrid(Grid sourceGrid,
Grid destGrid)
Adds a source and destination grid pair to the list of grids for
resampling.
|
abstract void |
perform(boolean verbose)
Performs the resampling operation on all source / destination
pairs.
|
protected EarthTransform sourceTrans
protected EarthTransform destTrans
protected java.util.List<Grid> sourceGrids
protected java.util.List<Grid> destGrids
public GridResampler(EarthTransform sourceTrans, EarthTransform destTrans)
sourceTrans
- the source earth transform.destTrans
- the destination earth transform.public void addGrid(Grid sourceGrid, Grid destGrid)
sourceGrid
- the source grid for resampling.destGrid
- the destination grid for resampling.public abstract void perform(boolean verbose)
verbose
- true for verbose resampling.