Description Usage Arguments Details Value Examples
View source: R/gt_compareRaster.R
Evaluate whether two gt_RasterLayer
objects have the same
extent, number of rows and columns, projection, and resolution
(or a subset of these comparisons).
1 2 |
x |
|
y |
|
extent |
|
rowcol |
|
crs |
|
res |
|
tolerance |
|
stopiffalse |
|
showwarning |
|
This function is similar to compareRaster
except that is is less rigorous.
logical
are all tested parameters the same?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
g <- gt_raster(raster::raster(matrix(runif(9), ncol=3),
crs=sp::CRS('+init=epsg:4326'),
xmn=0, xmx=3, ymn=2, ymx=10))
g2 <- gt_raster(raster::raster(matrix(runif(9), ncol=3),
crs=sp::CRS('+init=epsg:3395'),
xmn=0, xmx=3, ymn=2, ymx=10))
g3 <- gt_raster(raster::raster(matrix(runif(9), ncol=3),
crs=sp::CRS('+init=epsg:4326'),
xmn=10, xmx=13, ymn=12, ymx=20))
gt_compareRaster(g, g) # same properties
gt_compareRaster(g, g2, stopiffalse=FALSE) # different crs
gt_compareRaster(g, g2, stopiffalse=FALSE) # different extent
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.