getInd: Find indices in matrix

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Function to find to which matrix indices coordinates correspond (on a 304 x 448 grid)

Usage

1
getInd(coords, xmn = -3850, ymn = -5350)

Arguments

coords

coordinates of interest

xmn

min x (defaults to value for Northern Polar stereographic grid: -3850)

ymn

min y (defaults to value for Northern Polar stereographic grid: -5350)

Value

n x 2 matrix of coordinates on a 304 x 448 grid

Examples

1
2
dat <- matrix(nrow = 2, ncol = 2, data = c(-2000, 0, 300, 1000))
getInd(dat)

IceCast documentation built on Aug. 16, 2017, 9:03 a.m.