When I try to run a dissimilarity analysis using the vegan library in Pythonwin
calling to R I seem to get into a situation that I can only describe as
stalling without any error generated. I can run the exact process in R
directly and it runs fine, and I would like to set this up as a tool from
ArcGIS.
This is a pretty simply process, below is the example scripting. When I run
the process from Pythonwin it makes it to the last line in then just processes,
I've let it run over 6 hrs and there seems to be no progress, but the cpu and
ram and being actively utilized. If I run it directly from R it's done in a
less than a minute.
import rpy, win32com.client, numpy
from rpy import r
r('library(vegan)')
r('csv <- read.csv("c:/Projects/Brazil/Analysis/CSV_Crosstab.csv", header=T,
as.is=T)')
r('dim(csv)')
r('names(csv)')
r('csv.data <- csv[,c(-1)]')
r('csv.m <- as.matrix(csv.data,)')
r('dimnames(csv.m) <- list(csv$site_id, names(csv.data))')
r('csv.dis <- vegdist(csv.m, method="jaccard")')
Any help would be appreciated, without an error I'm at a loss as to what to try
to trouble shoot.
Thanks,
Jon
***********************************************************
John Hak
Senior GIS Analyst/Ecologist
NatureServe - A Network Connecting Science with Conservation
4001 Discovery Drive, Suite 2110
Boulder, CO 80303
(703) 797-4809
Skype: jon.hak
ΓΌ Please consider the environment before printing this e-mail
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list