Hello. I am using a Python script to run the SegmentMeanShift tool of Spatial Analyst, via arcpy:
arcpy.CheckOutExtension("Spatial")
seg_raster = SegmentMeanShift(in_raster, "20", "15", "10")
seg_raster.save(segments)
Running one instance of the tool works just fine. However, calling a new instance (on a different dataset) immediately fails.
Does anyone know how to successfully kick off multiple processes? It needs to be such that the script is called independently for each dataset (i.e., I can't know ahead of time how many datasets I will need to process; a second, or third, etc., process may be called at any time after the first one). Thanks.