View source: R/longLatRasters.r
longLatRasters | R Documentation |
This function generates a raster stack with two rasters, one with cell values equal to the cell's longitude and the other with cell values equal to cthe cell's latitude.
longLatRasters(x, m = NULL, filePath = NULL, ...)
x |
Raster* object. The output will have the same resolution, extent, and coordinate projection system as |
m |
Logical or raster* object. If TRUE then the output rasters will have |
filePath |
String or |
... |
Arguments to pass to |
Object of class RasterStack
.
## Not run: x <- raster::raster() # raster with 1 deg resolution and extent equal to entire world ll <- longLatRasters(x) plot(ll) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.