Tuesday, March 23, 2010

Using Kernel Density

Has anyone ever been able to get the kernel density function to work in a python script?  It appears that the function does not honor the inputs, but I could be mistaken.  Post some code if you got it working.

The script I'm using is published to ArcGIS Server, and the kernel density if performed from the ArcToolbox, it returns the proper image, while the python call returns a black or blank tile, depending on how ArcGIS Server want to behave that minute. 

It's very frustrating because no errors are returned, and both the script and arctoolbox function work in desktop.

1 comment:

curtisbelyea said...

??

expr = "linedensity(" + rds + ", none, 30, kernel, 10000, 564)"

gp.SingleOutputMapAlgebra_sa(expr, "density")