Package noaa.coastwatch.util
Class GridResampler
java.lang.Object
noaa.coastwatch.util.GridResampler
- Direct Known Subclasses:
ACSPOInverseGridResampler
,DirectGridResampler
,InverseGridResampler
,MixedGridResampler
The
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.- Since:
- 3.1.2
- Author:
- Peter Hollemans
-
Field Summary
Modifier and TypeFieldDescriptionThe list of destination grids.protected EarthTransform
The destination earth transform.The list of source grids.protected EarthTransform
The source earth transform. -
Constructor Summary
ConstructorDescriptionGridResampler
(EarthTransform sourceTrans, EarthTransform destTrans) Creates a new grid resampler from the specified source and destination transforms. -
Method Summary
-
Field Details
-
sourceTrans
The source earth transform. -
destTrans
The destination earth transform. -
sourceGrids
The list of source grids. -
destGrids
The list of destination grids.
-
-
Constructor Details
-
GridResampler
Creates a new grid resampler from the specified source and destination transforms.- Parameters:
sourceTrans
- the source earth transform.destTrans
- the destination earth transform.
-
-
Method Details
-
addGrid
Adds a source and destination grid pair to the list of grids for resampling. The source grid data will be resampled into the destination grid.- Parameters:
sourceGrid
- the source grid for resampling.destGrid
- the destination grid for resampling.
-
perform
public abstract void perform(boolean verbose) Performs the resampling operation on all source / destination pairs.- Parameters:
verbose
- true for verbose resampling.
-