Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-13 Thread Ashton Shortridge
Hello Josh, and list, Figuring out how to link R with GIS may be extremely useful to you, not just for calculating slope and aspect, but also for other analyses in the future. There are also reasons you might not want to; I am one of those people who likes to write his own code. Consequently I

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-10 Thread Josh London
slav Hengl Cc: r-sig-geo@stat.math.ethz.ch Subject: Re: [R-sig-Geo] Slope and Aspect calculations in R Tom, Thanks! I have seen your posts and results of some of your work with SAGA and I am very interested. But, I have been to lazy to this point to try compiling SAGA for either MacOS X or Linux (

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-10 Thread Tomislav Hengl
Tom Hengl http://spatial-analyst.net > -Original Message- > From: Thomas Adams [mailto:thomas.ad...@noaa.gov] > Sent: Friday, July 10, 2009 4:20 PM > To: Tomislav Hengl > Cc: r-sig-geo@stat.math.ethz.ch > Subject: Re: [R-sig-Geo] Slope and Aspect calculations in R >

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-10 Thread Thomas Adams
z.ch [mailto:r-sig-geo-boun...@stat.math.ethz.ch] On Behalf Of Thomas Adams Sent: Friday, July 10, 2009 3:12 PM To: Josh London Cc: r-sig-geo@stat.math.ethz.ch Subject: Re: [R-sig-Geo] Slope and Aspect calculations in R Josh, I use R & GRASS together on both MacOS X and Linux without problems.

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-10 Thread Tomislav Hengl
-sig-geo-boun...@stat.math.ethz.ch > [mailto:r-sig-geo-boun...@stat.math.ethz.ch] On Behalf > Of Thomas Adams > Sent: Friday, July 10, 2009 3:12 PM > To: Josh London > Cc: r-sig-geo@stat.math.ethz.ch > Subject: Re: [R-sig-Geo] Slope and Aspect calculations in R > > Josh, > &g

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-10 Thread Thomas Adams
Josh, I use R & GRASS together on both MacOS X and Linux without problems. It's very direct to write a shell script that calls both R & GRASS within a single script. Writing a R script that calls GRASS may be more tedious to do what you want. Writing a shell script that calls both may be the

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-09 Thread milton ruser
Hi Josh, Almost on windows (sorry!) I start a grass session under MSYS (that emulate a unix like environment), and from the "shell" I start R (with something like /c/Progra~2/R/R-2.9.0/bin/Rgui.exe& ). After, on R, I load spgrass6 package, which will allow the communication between your R session

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-09 Thread Roger Bivand
On Thu, 9 Jul 2009, Josh London wrote: Thanks for the suggestions so far regarding the use of GRASS or SAGA. We have considered those options but SAGA doesn't appear available for MacOS. My understanding is that spgrass6 is more for accessing R code/functions from within GRASS vs accessing GR

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-09 Thread Josh London
Thanks for the suggestions so far regarding the use of GRASS or SAGA. We have considered those options but SAGA doesn't appear available for MacOS. My understanding is that spgrass6 is more for accessing R code/functions from within GRASS vs accessing GRASS functions from within R. We have all

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-09 Thread milton ruser
Hi Josh, How about you play R with GRASS (spgrass6 package) or SAGA (RSAGA package)? May be you will get better results, mainly you can do other geoprocessing on your data. Cheers milton brazil=toronto On Thu, Jul 9, 2009 at 1:20 PM, Josh London wrote: > Hello > > We are looking to mimic, in

Re: [R-sig-Geo] Slope and Aspect calculations in R

2009-07-09 Thread Thomas Adams
Josh, I can not answer your specific question WRT R, but before you embark on this, you may consider R with GRASS GIS — they play together pretty nicely and the slope and aspect capabilities are part of GRASS. Regards, Tom Josh London wrote: Hello We are looking to mimic, in R, the slope (

[R-sig-Geo] Slope and Aspect calculations in R

2009-07-09 Thread Josh London
Hello We are looking to mimic, in R, the slope (max magnitude difference between a cell and its neighbors) and aspect (direction of maximum magnitude difference) functions found in ESRI's Spatial Analyst package. We were just about to code up the slope function but thought I would make sure w