Package noaa.coastwatch.util
Class GridDataResamplingMapFactory
java.lang.Object
noaa.coastwatch.util.GridDataResamplingMapFactory
- All Implemented Interfaces:
ResamplingMapFactory
The GridDataResamplingMapFactory
class creates a resampling
map by directly querying grid variables for the source and column mapping.
- Since:
- 3.5.0
- Author:
- Peter Hollemans
-
Constructor Summary
ConstructorDescriptionGridDataResamplingMapFactory
(Grid sourceRowGrid, Grid sourceColGrid) Creates a new map factory. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int[] start, int[] length) Creates a new resampling map that covers a specified set of destination coordinates.
-
Constructor Details
-
GridDataResamplingMapFactory
Creates a new map factory.- Parameters:
sourceRowGrid
- the grid variable to use for retrieving row data for the mapping.sourceColGrid
- the grid variable to use for retrieving column data for the mapping.
-
-
Method Details
-
create
Description copied from interface:ResamplingMapFactory
Creates a new resampling map that covers a specified set of destination coordinates.- Specified by:
create
in interfaceResamplingMapFactory
- Parameters:
start
- the starting rectangle coordinates in the destination space as [row, col].length
- the size of the rectangle in destination space as [rows, cols].- Returns:
- a resampling object that covers the specified destination rectangle or null if the destination rectangle has no corresponding coordinates in the source space.
-