getCoordinates: Get geographical coordinates of a climate data object

View source: R/helpers.R

getCoordinatesR Documentation

Get geographical coordinates of a climate data object

Description

Returns the coordinates of a climate data object, either stations or grid

Usage

getCoordinates(obj)

Arguments

obj

Any object extending the station or grid classes

Value

A list with x and y components

Author(s)

J. Bedia

See Also

Other get.helpers: get2DmatCoordinates(), getDim(), getGridProj(), getGridVerticalLevels(), getGrid(), getRefDates(), getSeason(), getShape(), getStationID(), getVarNames(), getWT(), getYearsAsINDEX(), setGridProj(), typeofGrid(), which.leap()

Examples

 
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))


SantanderMetGroup/transformeR documentation built on Oct. 28, 2023, 5:26 a.m.