[R-sig-Geo] Generate a coordinate (latitude) image?

Manuel Schneider manuel.schneider at art.admin.ch
Wed May 18 14:08:37 CEST 2011


Jonathan Greenberg <greenberg <at> ucdavis.edu> writes:

> 
> Folks:
> 
> Is there any way to take a raster and generate two outputs where
> each pixel is the center coordinate of that pixel (e.g. you will have
> one x- image and one y-image)?  I'm trying to produce a "latitude map"
> for solar calculations.
> 
> --j
> 

You could use coordinates(as(obj, "SpatialPixels")) but only for relatively
small rasters. And why not calculate by hand?



More information about the R-sig-Geo mailing list