AnsweredAssumed Answered

Jenks Classification in a script

Question asked by wtgeographer on Mar 18, 2014
Latest reply on Mar 21, 2014 by wtgeographer
This is a portion of a stand alone script in which the user supplies the dem for the slope analysis.  The reclassify tool would otherwise allow me to choose a jenks classification and set the number classes to 10.  I need to supply the reclassify tool the necessary parameters to accomplish the same thing without the benefit of the arcgis tool dialogue.  How can I set this up programmatically using the output slope raster to supply the necessary parameters to the reclassify tool?

# Check out the ArcGIS Spatial Analyst extension license arcpy.CheckOutExtension("Spatial")  # Execute Slope try:     outSlope = Slope(raster_clip, "DEGREE", 3.2808333)     dem_Slope ="dem_Slope")     arcpy.AddMessage("Slope complete.") except:      arcpy.AddError("Was not able to complete slope...")   # Reclassify the slope raster remapTable = Reclassify (dem_Slope, Value, ...