Open akshoelace opened 5 months ago
Hi Sasha,
I am not actively developing the shoreline digitization tool at this time, but I do have a few suggestions for you. As for why the unsupervised classification step results in an error, my guess is that ArcPro has made some changes to that functionality that are not backwards compatible. As for how to side-step the issue... First, the IsoClusterUnsupervisedClassification step was just an option I added to the tool as an addition to the band-based NDWI outputs. That said, you should be able to just comment out the IsoClusterUnsupervisedClassification block (and any subsequent code if it relies on the blocked out code). I didn't add much error-checking to the code, so you could alternatively toy around with adding a try/except statement around the unsupervised classification block. If you want to produce the optional unsupervised classification output, you might look to see if there's a new Python syntax for that operation and swap that syntax into the code.
Hope that helps, Rob
On Fri, Jun 7, 2024 at 5:47 PM Sasha Peterson @.***> wrote:
Hi there! Can't wait to try your code, I was able to successfully run the test data in ArcPro but when I use my own data (WV02 8 band), I got a quick error. Can you help me out with this? Thanks!
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Utils.py", line 45, in swapper result = wrapper(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 10024, in Wrapper result = arcpy.gp.IsoClusterUnsupervisedClassification_sa( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 512, in return lambda args: val(*gp_fixargs(args, True)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ arcgisscripting.ExecuteError: ERROR 010097: The number of cells in the output exceeds function's limit: 67108862. ISOCLUSTER failed! ERROR 010067: Error in executing grid expression. Failed to execute (IsoCluster).
Error in executing Iso Cluster Unsupervised Classification. Failed to execute (IsoClusterUnsupervisedClassification).
Failed script ShorelineDigitizationTool080922... Failed to execute (ShorelineDigitizationTool080922)
— Reply to this email directly, view it on GitHub https://github.com/TwoPoint34/ShorelineDigitizationArcPro/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS5GSB2UAIYHYP2SYYF5H6LZGIS6XAVCNFSM6AAAAABI7LHXEGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DCMRRGEYDCOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi there! Can't wait to try your code, I was able to successfully run the test data in ArcPro but when I use my own data (WV02 8 band), I got a quick error. Can you help me out with this? Thanks!
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Utils.py", line 45, in swapper result = wrapper(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 10024, in Wrapper result = arcpy.gp.IsoClusterUnsupervisedClassification_sa( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 512, in
return lambda args: val(*gp_fixargs(args, True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
arcgisscripting.ExecuteError: ERROR 010097: The number of cells in the output exceeds function's limit: 67108862. ISOCLUSTER failed!
ERROR 010067: Error in executing grid expression.
Failed to execute (IsoCluster).
Error in executing Iso Cluster Unsupervised Classification. Failed to execute (IsoClusterUnsupervisedClassification).
Failed script ShorelineDigitizationTool080922... Failed to execute (ShorelineDigitizationTool080922)