Learn R Programming

magclass (version 6.13.2)

getCoords: Get Coordinates

Description

Extracts spatial coordinates of a MAgPIE-object

Usage

getCoords(x, xlab = "x", ylab = "y")

getCoords(x, xlab = "x", ylab = "y") <- value

Value

coordinates of the MAgPIE-object

Arguments

x

MAgPIE object

xlab

label of x-dimension

ylab

label of y-dimension

value

coordinates as two column data.frame the data should be set to (first column = x, second column = y).

Functions

  • getCoords(x, xlab = "x", ylab = "y") <- value: set coordinates

Author

Jan Philipp Dietrich

See Also

as.RasterBrick, getItems, "magpie"

Examples

Run this code
a <- maxample("animal")
getCoords(a)

Run the code above in your browser using DataLab