R and GRASS scripts for the RS-GIS Ecol book