projectGrid | R Documentation |
Defines and/or transforms the projection of a grid (or station data) by means of a CRS
object.
projectGrid(grid, original.CRS = "", new.CRS = "")
grid |
a grid or multigrid (including station data). |
original.CRS |
character as passed to function |
new.CRS |
character as passed to function |
This function uses spTransform
, CRS
and proj4string
from package sp
M. Iturbide
spTransform
, proj4string
.
library(climate4R.datasets)
data("VALUE_Iberia_pr")
plot(getCoordinates(VALUE_Iberia_pr))
grid <- projectGrid(VALUE_Iberia_pr,
original.CRS = "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0",
new.CRS = "+init=epsg:28992")
plot(getCoordinates(grid))
data("EOBS_Iberia_pr")
plot(get2DmatCoordinates(EOBS_Iberia_pr))
grid <- projectGrid(EOBS_Iberia_pr,
original.CRS = "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0",
new.CRS = "+init=epsg:28992")
plot(get2DmatCoordinates(grid))
require(visualizeR)
spatialPlot(climatology(grid))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.