setGridProj | R Documentation |
Set the "projection"
attribute of a climate4R grid
setGridProj(grid, proj = NULL)
grid |
An input grid |
proj |
Character string. A string specifying the projection attribute value. See details. |
The projection string format is free, although usually a valid epsg code or proj4 string is introduced here.
Returns (invisible) the same input grid with the new "projection"
attribute in "$xyCoords"
list element.
J Bedia
Other get.helpers:
get2DmatCoordinates()
,
getCoordinates()
,
getDim()
,
getGrid()
,
getGridProj()
,
getGridVerticalLevels()
,
getRefDates()
,
getSeason()
,
getShape()
,
getStationID()
,
getVarNames()
,
getWT()
,
getYearsAsINDEX()
,
typeofGrid()
,
which.leap()
require(climate4R.datasets)
data(NCEP_Iberia_hus850)
getGridProj(NCEP_Iberia_hus850)
# We introduce the standard definition of WGS84 lat-lon projection
NCEP_Iberia_hus850 <- setGridProj(NCEP_Iberia_hus850,
proj= "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs")
getGridProj(NCEP_Iberia_hus850)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.