i want to use the Spatially constrained multivariate clustering tool for a point shapefile. I'm using PyScripter. The shapefile is named "LITO2016_area_modelli_20190312_v2" and the attribute fields i want to use in the analysis are "Rvmedian", "Rv_int_ran" and "zero". Prova is the output field. Arcpy give me this error:
AttributeError: 'module' object has no attribute 'SpatiallyConstrainedMultivariateClustering_stats'
I don't know where i'm wrong.
import arcpy from arcpy import env from arcpy.sa import * #Check out the ArcGIS Spatial Analyst extension license arcpy.CheckOutExtension("spatial") arcpy.env.workspace = r'C:\python' arcpy.SpatiallyConstrainedMultivariateClustering_stats("LITO2016_area_modelli_20190312_v2", "prova", None, "Rvmedian", "Rv_int_ran", "zero", None, None, None,"CONTIGUITY_EDGES_CORNERS")
Can anybody help me?