| domath {affinity} | R Documentation | 
Calculate the math of an affine transform
Description
Given relative location and absolute locations, convert to an actual real world extent for a matrix of data.
Usage
domath(pts, xy, r = NULL, proj = NULL)
Arguments
pts | 
 known points of 'xy'  | 
xy | 
 'xy' obtain from   | 
r | 
 raster in use  | 
proj | 
 optional projection, if the pts are longlat and the raster is not  | 
Details
Convert known geographic points with raw graphic control points and a reference raster to an extent for the raster in geography.
Value
raster extent
See Also
Examples
## not a real example, but the extent we could provide volcano if the second set of points
## described the real world positions of the first set of points within the matrix
domath(cbind(c(147, 148), c(-42, -43)), cbind(c(0.2, 0.3), c(0.1, 0.5)), raster::raster(volcano))
[Package affinity version 0.2.5 Index]