Select to view content in your preferred language

Reclassify a feature class with arcpy using Natural Breaks (Jenks) method

405
0
12-27-2023 11:20 AM
Labels (2)
Luis
by
New Contributor II

I'm trying to reclassify a feature class using arcpy, but the Python functionality for the Reclassify tool doesn't appear to be the same as the Dialog functionality.  The tool dialog gives you the option to choose between Classify and Unique options to generate a map table:

Reclassify1.png

If you click Classify, it then gives you the option to select a classification method and the number of classes:

Reclassify2.png

I would like be able to use this functionality in arcpy to reclassify a feature class into 4 classes (with values of 1, 2, 3, 4) using the Natural Breaks (Jenks) method, so that the map table looks like this:

Reclassify3.png

This script will be used with many different datasets, so I have no way of knowing what the data will look like.

0 Kudos
0 Replies