Learn R Programming

magclass (version 5.24.7)

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

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

Value

coordinates of the MAgPIE-object

Functions

  • getCoords<-: set coordinates

See Also

as.RasterBrick, getItems, "'>magpie"

Examples

Run this code
# NOT RUN {
  a <- maxample("animal")#'   
  getCoords(a)

# }

Run the code above in your browser using DataLab