EsriOceans / btm

Benthic Terrain Modeler
http://resources.arcgis.com/en/communities/oceans/
Mozilla Public License 2.0
27 stars 7 forks source link

Classify doesn't remove temporary data correctly #72

Closed scw closed 10 years ago

scw commented 10 years ago

As reported by @pendlemr, classify sometimes doesn't delete intermediate data. Related to #69.

Executing: runfullmodel C:\temp\BTM bathy5m.tif 25 250 3 25 C:\Benthic_Terrain_Model\tutorial\sample_data\fagatelebay_classification.csv C:\temp\BTM\output_zones
Start Time: Wed Mar 05 12:32:58 2014
Running script runfullmodel...
Calculating broad-scale BPI...
Generating the broad-scale Bathymetric Position Index (BPI) raster...
Calculating neighborhood...
Calculating FocalStatistics for bathy5m.tif...
Saved output as C:\temp\BTM\broad_bpi
Calculating fine-scale BPI...
Generating the fine-scale Bathymetric Position Index (BPI) raster...
Calculating neighborhood...
Calculating FocalStatistics for bathy5m.tif...
Saved output as C:\temp\BTM\fine_bpi
Standardizing BPI rasters...
Calculating the slope...
Classifying Zones...
Generating the classified grid, based on the provided classes in 'C:\Benthic_Terrain_Model\tutorial\sample_data\fagatelebay_classification.csv'.
Parsing CSV document... found 11 classes.
Calculating grid for Reef Crest...
Calculating grid for Mid-Slope Ridges...
Calculating grid for Back Reef...
Calculating grid for Upper Slopes...
Calculating grid for Lower Bank Shelf...
Calculating grid for Upper Reef Flat...
Calculating grid for Open Slopes...
Calculating grid for Depression...
Calculating grid for Back Reef...
Calculating grid for Mid-Slope Depressions...
Calculating grid for Deep Depression...
Creating Benthic Terrain Classification Dataset...
1 of 10
2 of 10
3 of 10
4 of 10
5 of 10
6 of 10
7 of 10
8 of 10
9 of 10
10 of 10
Saving Output to C:\temp\BTM\output_zones
Complete.
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Data Element: Dataset C:\temp\BTM\con_Back Reef.tif does not exist or is not supported
Failed to execute (Delete).

Executing: Delete "C:\temp\BTM\con_Back Reef.tif" File
Start Time: Wed Mar 05 12:34:04 2014
Failed to execute. Parameters are not valid.
ERROR 000732: Input Data Element: Dataset C:\temp\BTM\con_Back Reef.tif does not exist or is not supported
Failed to execute (Delete).
Failed at Wed Mar 05 12:34:04 2014 (Elapsed Time: 0.00 seconds)
Python Error:   File "C:\Users\Jamie.Carter\AppData\Local\ESRI\Desktop10.1\AssemblyCache\{36C72C3F-AF4A-F8AB-3A57-2729E1A8066C}\toolbox\scripts\classify.py", line 127, in main
    arcpy.Delete_management(grid.catalogPath)

Completed script runfullmodel...
Failed to execute (runfullmodel).
Failed at Wed Mar 05 12:34:04 2014 (Elapsed Time: 1 minutes 6 seconds)