Hello, I'm a beginner in ArcGIS / Python and trying to perform a calculation on a raster grid.

I have a raster grid and I want to do some calculations on it using some relatively complex (more so than add, multiply, etc). I've worked out the python code I'd need to do were it not a raster grid.

a = 0.5*(1+math.erf((RASTER)/math.sqrt(2*2*2))) where DATA is the raster I want to put in

Is this something I am better doing with a Python Script, one that imports math? Would anyone know a good point to start please?

Thanks

I have a raster grid and I want to do some calculations on it using some relatively complex (more so than add, multiply, etc). I've worked out the python code I'd need to do were it not a raster grid.

a = 0.5*(1+math.erf((RASTER)/math.sqrt(2*2*2))) where DATA is the raster I want to put in

Is this something I am better doing with a Python Script, one that imports math? Would anyone know a good point to start please?

Thanks

Here's some python code to run your expression:

Note - I take no responsibility for the correctness of the ERF implementation! I just copied it off teh interwebz and modified it to work with raster objects...