[R-sig-Geo] raster algebra in R

Robert J. Hijmans r.hijmans at gmail.com
Fri Jul 31 23:20:23 CEST 2009


You can try the raster package, available from R-forge:

install.packages("raster", repos="http://R-Forge.R-project.org")

It has very simple raster algebra

r1 <- raster('myfile1.asc')
r2 <- raster('myfile2.asc')
r3 <- r1 + sqrt(r2) + 1

etc.

Robert

On Fri, Jul 31, 2009 at 11:21 AM, Jason Robinson<litobrancha at yahoo.com> wrote:
>
> I need to do some raster algebra on some large rasters.  right now they are ascii files.  I'm a complete R novice.  Can anyone point me towards a good source for figuring out how to get my data into R and how to do very simple raster manipulations?  no advice is too simple for this guy.  appreciate any help that is out there
>
> Jason Robinson
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list