Cyndy

updating a Python scri[pt from 9.2 to 10.1 - blockmin function?

Discussion created by Cyndy on May 6, 2013
Latest reply on May 6, 2013 by csny490
I have a Python script, not written by me, that I am attempting to upgrade to run using arcpy.  I'm stuck on some raster calculator- type calculations in the old script; I cannot figure out how to reproduce them with arcpy.  For instance, I am stumped on how to reproduce this line:

outCon = Con(gR == blockmin(gR, RECTANGLE, 2, 2), 4.0, gR)

I receive an error that 'blockmin' is not defined.  If I search for blockmin in arc 10.1 help, I get no hits.  Has this been deprecated?  Is there an alternate function I can use with arcpy?  I'm a seasoned programmer with a good bit of Arc 9.x experience,  but relatively new to Python and Arcgis 10.1.

thanks in advance for any pointers you can offer.

Outcomes