I am running Depression Evaluation in ArchHydro (AchGIS 10.4) and keep getting the following error:
ERROR 010316: Unable to open the input raster: C:\USERS\PMH\APPDATA\LOCAL\TEMP\ARCF98B\AH2016~4\G_G2432
ERROR 010067: Error in executing grid expression.
ERROR 010218: Could not reference the raster dataset.
at ESRI.ArcGIS.SpatialAnalyst.RasterConditionalOpClass.Con(IGeoDataset ConditionalRaster, IGeoDataset TrueRaster, Object& FalseRaster)
at ESRI.APWR.ApHydro.ArcHydroOp.DepressionEvaluation(ApProgworkMgr& apProgMgr, String configNodeName, ApLayers apLayers, Double zUnitFactor, Int32 debug, ITrackCancel& trackcancel, IGPMessages& messages, String& exMessage) in C:\Builds\HydroSolutions\10.4_ArcHydro\Sources\ArcHydroTools\src\ApHydro\ArcHydroOp.vb:line 58174
Failed to execute (DepressionEvaluation).
I have cleared out the TEMP folders, make the directory "AH2016~4" and none of that works.
if the results are grids/rasters, you should be working in folders with no spaces or other unsavory characters, try your inputs and outputs to simple folder structures, when things go wrong with issues such as this.
Thank you. I did do that, i even got rid of all numbers in the file and folder structure. An since this location is generated within the programs it confuses me that it is looking in a place with the name "AH2016~4". Is there somewhere where I can setup the temp file definition? I am also doing everything on my C: drive (which already is driving me crazy)!
I don't know about the extension setting directly, but you can set your default environments within arcmap directly. The default folder locations are pretty useless (ie c:\users.....) since invariably they will cause problems with people using rasters. If you use tools within arctoolbox, they can be set explicitly within the Environments tab of any tool (bottom right of all tools) or try Geoprocessing options.
My first time seeing this topic. Have not used the Depression Evaluation tool.
# Save the extent environment tempEnvironment = arcpy.env.extent # Set the extent environment using a keyword. arcpy.env.extent = "MAXOF" ... ... # recall extent arcpy.env.extent = tempEnvironment
** If someone knows how to display the processing extent on the map (if only temporarily or as graphic) that would be nice. I hate simply resetting the processing extent as a "solution" when I'm not sure if it is the problem.
I had this same issue. I followed all the advice above related to file paths, character length and type, etc. I solved the issue following the advice here. I exported the raster from being geodatabase-hosted to being stand alone GRID in a separate folder. I was then able to run the Depression Evaluation tool successfully.