getCoordinates | R Documentation |
Returns the coordinates of a climate data object, either stations or grid
getCoordinates(obj)
obj |
Any object extending the station or grid classes |
A list with x and y components
J. Bedia
Other get.helpers:
get2DmatCoordinates()
,
getDim()
,
getGrid()
,
getGridProj()
,
getGridVerticalLevels()
,
getRefDates()
,
getSeason()
,
getShape()
,
getStationID()
,
getVarNames()
,
getWT()
,
getYearsAsINDEX()
,
setGridProj()
,
typeofGrid()
,
which.leap()
require(climate4R.datasets)
# Regular grid
data("NCEP_Iberia_hus850")
str(getCoordinates(NCEP_Iberia_hus850))
# Regular rotated grid with correpondence with a non regular grid in the
# lat/lon domain.
data("CORDEX_Iberia_tas")
str(getCoordinates(CORDEX_Iberia_tas))
# Station data
data("VALUE_Iberia_tas")
str(getCoordinates(VALUE_Iberia_tas))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.