R/getCoordinates.R

Defines functions getCoordinates

Documented in getCoordinates

getCoordinates <-
function(file,r,c){
  raw <- raster(file)
  return(spTransform(xyFromCell(raw,cellFromRowCol(raw,rownr = r,colnr = c),spatial = T),CRS("+proj=longlat +datum=WGS84")))
}
JusteRaimbault/r-spatialmorphology documentation built on May 22, 2019, 5:07 p.m.