<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Processing time with Hydrology  tools in standalone Python script vs. ArcCatalog in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74203#M1013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it's not instantiating the gp that's an issue - I have timestamps for when a particular tool starts, and when it finishes. Watershed and Snap Pour Point are the ones with terrible performance (I've build in a lot of print statements and writing to a log .txt file the timestamps for post-run analysis of where the time suck(s) are). I'm using the ArcToolBox Spatial Analyst Hydrology tools, not Toolbar tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In both runs (python script and manually in arccatalog) I'm outtputing to and inputting from the same personal geodatabases - they are not crammed with data so I'm not pushing a data size limit or anything. The elevation derivative rasters are in the IMAGINE image format in the pgdb's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can you change what you mention regarding current and scratch workspaces? I noticed in my Windows user profile Temp directory (C:\Documents and Settings\...\Local Settings\Temp) that there are some of the g_g_g2 files (or similar) in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to see what happens, I set up a new ArcToolbox Toolbox and added my python script as a script that I could run. I have the script running based on argument input from a "configuration" text file that it reads in, so in this fashion I just double click on the script and click "OK" as there are no variables to set. The script ran in 7 minutes 32 seconds vs. 20+ minutes for my same three test sites, one-third of the total time. It definitely shaved off a bunch of time on the Snap Pour Point and Watershed tool runs (everything else was already reasonably fast so not worried about other tools/functions). I ran the script via ArcToolBox in ArcCatalog, not ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SO....it seems that there is something going on (or perhaps in this case not going on) when you run a python script outside of ArcGIS (via command line or an IDE) that incurs considerable overhead on raster-calculation tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any special raster settings in the ArcToolBox environments. As far as I know, these are the defaults (I've never messed with them - see attached screenshot). How would these (or a lack of these defaults) impact such tools - is that the issue? If so, can they be set in standalone python code??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks- I think this is getting closer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2011 20:53:53 GMT</pubDate>
    <dc:creator>ThomasBurley</dc:creator>
    <dc:date>2011-04-11T20:53:53Z</dc:date>
    <item>
      <title>Processing time with Hydrology  tools in standalone Python script vs. ArcCatalog</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74201#M1011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is: what might cause the ArcGIS 9.3 Hydrology Toolbox Snap Pour Point and Watershed tools to run *significantly* slower in a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python script versus manually running the tools in ArcCatalog (both runs using the exact same input data files and specification parameters)??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running this script from the windows command line so neither ArcMap or ArcCatalog are open; using ArcGIS 9.3.1 on a Windows XP machine with 4 GB of RAM and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;plenty of processor power (a Dell Precision machine); and all input data are local.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have pre-processed Flow Accumulation, Flow Direction, and a Feature Class of water-quality sample sites to be used as pour points, and all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;datasets are in NAD83 UTM 17N projection. The Flow Accum and Flow Dir data files have spatial extents based on Hydrologic Unit Code (HUC) eight digit boundaries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The script iterates through each record in the sample site feature class, determines which eight digit HUC the point falls in, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;selects and exports the site record as a new feature class in a scratch geodatabase, and then handles the watershed processing using that exported point feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've stripped out comments and some other calls to a "processing log timestamp" function for reporting tool run times just to focus here on the question&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at hand. The biggest time sinks based on the processing log reporting are the Snap Pour Point tool and Watershed tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We're talking on the order of 4+ minutes per site using a subset of all the sites for testing, and then 3-4 minutes for each site with the Watershed tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I can take the same single point feature class and the same flow accumuluation and flow direction rasters that the Python script is using, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and run the Snap Pour Point and Watershed tools manually in ArcCatalog in approx 1 minute or less for each site (the resulting watersheds are the same as &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the watersheds the script produces). Example: one of the sites I manually ran the Snap Pour Point tool&amp;nbsp; in 58 seconds via ArcCatalog, while the Python &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;script executing that tool took 3 minutes 59 seconds for the tool to complete. I then ran the Watershed tool manually for the same site and it &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;took 1 minute 1 second in ArcCatalog, while the Python script executing the Watershed tool took 4 minutes 8 seconds for the tool to complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a 50 meter buffer for the Snap Pour Point tool in both the Python script and during my ArcCatalog manual run comparisons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, CONSIDERABLY slower in the Python script. I've hit a wall with what I can figure out, so much appreciate any suggestions or insight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;try:
 if hucGdb in gdbFiles:
&amp;nbsp;&amp;nbsp; outScratch = scratch + '\\' + delinSiteID + 'temp'
&amp;nbsp;&amp;nbsp; flowAccum = filePath + '\\' + hucGdb + '\\' + 'FA_' + huc
&amp;nbsp;&amp;nbsp; flowDir = filePath + '\\' + hucGdb + '\\' + 'FD_' + huc
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; tempEnvironment = gp.extent
&amp;nbsp;&amp;nbsp; gp.extent = flowAccum
&amp;nbsp;&amp;nbsp; clause = '[DELIN_ID] = ' + "'" + delinSiteID + "'"
&amp;nbsp;&amp;nbsp; gp.Select_analysis(delinSites, outScratch, clause)
&amp;nbsp;&amp;nbsp; gp.extent = tempEnvironment

&amp;nbsp;&amp;nbsp; outSnapRaster = snapPoint + '\\' + 'p' + delinSiteID

&amp;nbsp;&amp;nbsp; gp.SnapPourPoint_sa(outScratch, flowAccum, outSnapRaster, tolerance)
&amp;nbsp;&amp;nbsp; gp.extent = tempEnvironment
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; outSnapFeature = snapPoint + '\\' + 'p' + delinSiteID + '_snap'
&amp;nbsp;&amp;nbsp; gp.RasterToPoint_conversion(outSnapRaster, outSnapFeature, "VALUE")

&amp;nbsp;&amp;nbsp; gp.AddField_management(outSnapFeature, "ORIGINAL_SITE_ID", "TEXT", "#", "#", "20")
&amp;nbsp;&amp;nbsp; gp.CalculateField_management(outSnapFeature, "ORIGINAL_SITE_ID", '"' + realID + '"')

&amp;nbsp;&amp;nbsp; gp.AddField_management(outSnapFeature, "DELIN_ID", "TEXT", "#", "#", "20") 
&amp;nbsp;&amp;nbsp; gp.CalculateField_management(outSnapFeature, "DELIN_ID", '"' + delinSiteID + '"')
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; outWsRaster = scratch + '\\' + delinSiteID
&amp;nbsp;&amp;nbsp; tempEnvironment = gp.extent
&amp;nbsp;&amp;nbsp; gp.extent = flowDir
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; gp.Watershed_sa(flowDir, outSnapRaster, outWsRaster)
&amp;nbsp;&amp;nbsp; gp.extent = tempEnvironment
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; outWsFeature = basinOutput + '\\' + delinSiteID

&amp;nbsp;&amp;nbsp; gp.RasterToPolygon_conversion(outWsRaster, outWsFeature, "SIMPLIFY")
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; gp.AddField_management(outWsFeature, "DELIN_ID", "TEXT", "#", "#", "25") 
&amp;nbsp;&amp;nbsp; gp.CalculateField_management(outWsFeature, "DELIN_ID", '"' + delinSiteID + '"')
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; gp.AddField_management(outWsFeature, "ORIGINAL_SITE_ID", "TEXT", "#", "#", "25")
&amp;nbsp;&amp;nbsp; gp.CalculateField_management(outWsFeature, "ORIGINAL_SITE_ID", '"' + realID + '"')

else:
&amp;nbsp; msg = """Site ID """ + realID + """ does not have a geodatabase of
&amp;nbsp; data, moving onto the next site"""
&amp;nbsp; print msg
&amp;nbsp; logFile.write(msg + '\n')
&amp;nbsp; 
except:
print "ARCGISSCRIPTING ERROR: " + gp.GetMessages(2)
msg = "ARCGISSCRIPTING ERROR: " + gp.GetMessages(2)
logFile.write(msg + '\n')
print "ERROR: " + ErrorDesc.message
msg = "ERROR: " + ErrorDesc.message
logFile.write(msg + '\n')

row = rows.next()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 16:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74201#M1011</guid>
      <dc:creator>ThomasBurley</dc:creator>
      <dc:date>2011-04-11T16:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Processing time with Hydrology  tools in standalone Python script vs. ArcCatalog</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74202#M1012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My&amp;nbsp; main question is are you sure this comparison is this apples to apples, ie have you compared the geoprocessing environments between the two, and are you using the tools in ArcCatalog or the (different) arc objects interface in the spatial analyst toolbar. (The environment from the toolbar is different than the GP tool environment.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that our gp script running from IDLE or elsewhere outside of ArcGIS does not inherit the default ArcCatalog environment. If you want a current and scratch workspace to be set for example, or have certain toolboxes (besides system toolboxes) loaded, you must set or add them in your script if you are running "standalone."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using tools in ArcCatalog, and the ArcCatalog output is a folder and the python output is a geodatabase, the ArcCatalog version may be running faster because only grids are native read/write in 9.3.x, other formats must be copied to/from GRID format before or after tool processing..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another slowdown can be the fact that from ArcCatalog you don't need to instantiate a geoprocessor, but that usually only affect tool startup time, not processing time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A tip in the raster environment that always makes tools run faster is make sure the current and scratch workspaces are both set to a (local) folder. This saves a lot of extra file copying etc. (Raster tools create a temp file in scratch while they work ("g_g_g2" etc) and rename it as a last step. If your scratch and current workspace are in different places (or current workspace or output isn't a folder) the entire tool output must be copied -- takes a while for a large raster.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 20:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74202#M1012</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2011-04-11T20:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Processing time with Hydrology  tools in standalone Python script vs. ArcCatalog</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74203#M1013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it's not instantiating the gp that's an issue - I have timestamps for when a particular tool starts, and when it finishes. Watershed and Snap Pour Point are the ones with terrible performance (I've build in a lot of print statements and writing to a log .txt file the timestamps for post-run analysis of where the time suck(s) are). I'm using the ArcToolBox Spatial Analyst Hydrology tools, not Toolbar tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In both runs (python script and manually in arccatalog) I'm outtputing to and inputting from the same personal geodatabases - they are not crammed with data so I'm not pushing a data size limit or anything. The elevation derivative rasters are in the IMAGINE image format in the pgdb's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can you change what you mention regarding current and scratch workspaces? I noticed in my Windows user profile Temp directory (C:\Documents and Settings\...\Local Settings\Temp) that there are some of the g_g_g2 files (or similar) in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to see what happens, I set up a new ArcToolbox Toolbox and added my python script as a script that I could run. I have the script running based on argument input from a "configuration" text file that it reads in, so in this fashion I just double click on the script and click "OK" as there are no variables to set. The script ran in 7 minutes 32 seconds vs. 20+ minutes for my same three test sites, one-third of the total time. It definitely shaved off a bunch of time on the Snap Pour Point and Watershed tool runs (everything else was already reasonably fast so not worried about other tools/functions). I ran the script via ArcToolBox in ArcCatalog, not ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SO....it seems that there is something going on (or perhaps in this case not going on) when you run a python script outside of ArcGIS (via command line or an IDE) that incurs considerable overhead on raster-calculation tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any special raster settings in the ArcToolBox environments. As far as I know, these are the defaults (I've never messed with them - see attached screenshot). How would these (or a lack of these defaults) impact such tools - is that the issue? If so, can they be set in standalone python code??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks- I think this is getting closer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 20:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74203#M1013</guid>
      <dc:creator>ThomasBurley</dc:creator>
      <dc:date>2011-04-11T20:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Processing time with Hydrology  tools in standalone Python script vs. ArcCatalog</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74204#M1014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In both runs (python script and manually in arccatalog) I'm outtputing to and inputting from the same personal geodatabases - they are not crammed with data so I'm not pushing a data size limit or anything. The elevation derivative rasters are in the IMAGINE image format in the pgdb's.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said for best performance overall you should read and write directly to grids, specially with tools like this that may be working with large rasters. You do this by writing to a folder workspace with no file extensions used in the output file name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How can you change what you mention regarding current and scratch workspaces? I noticed in my Windows user profile Temp directory (C:\Documents and Settings\...\Local Settings\Temp) that there are some of the g_g_g2 files (or similar) in there.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The current and scratch workspace are part of the geoprocessing environment. In Python you do this by setting geoprocessor properties and methods. The main settings i was concerned about performance-wise were the current and scratch workspace, which are in the&amp;nbsp; interface under general settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;gp.Workspace = r"e:\work"
gp.ScratchWorkspace = r"e:\work"&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Or use a configuration text file of course (saved from an desktop session using Save Environment) with gp.LoadSettings(). Those XML config rues are a really good way to make sure your interactive and outside-ArcGIS script processing were using the same environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just to see what happens, I set up a new ArcToolbox Toolbox and added my python script as a script that I could run. I have the script running based on argument input from a "configuration" text file that it reads in, so in this fashion I just double click on the script and click "OK" as there are no variables to set. The script ran in 7 minutes 32 seconds vs. 20+ minutes for my same three test sites, one-third of the total time. It definitely shaved off a bunch of time on the Snap Pour Point and Watershed tool runs (everything else was already reasonably fast so not worried about other tools/functions). I ran the script via ArcToolBox in ArcCatalog, not ArcMap.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;When you add a script tool to a toolbox and run it, it inherits the GP environment from the desktop session. Including its gp object (if you've checked the box to run in-process). So it's generally faster than "standalone".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, a really good way to time to the tools themselves is to print tool messages, which include timings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;print str(gp.GetMessages(0)) # for IDLE or PythonWin window
gp.AddMessage(gp.GetMessages(0)) # for ArcCatalog/Map tool messages or Windows command window&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74204#M1014</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T22:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Processing time with Hydrology  tools in standalone Python script vs. ArcCatalog</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74205#M1015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It appears the gp.LoadSettings method does not work - I saved out the ArcCatalog ArcToolBox Environment settings as an xml file, and when I try to load the settings in the script, it says the object cannot be found even though I triple verified I had the path and file name correct. I found this forum post that discusses this in the context of ArcObjects but seems the Python approach does the same thing: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/7204-igeoprocessor.savesettings-and-igeoprocessor.loadsettings-not-persisting-settings"&gt;http://forums.arcgis.com/threads/7204-igeoprocessor.savesettings-and-igeoprocessor.loadsettings-not-persisting-settings&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I did set the gp.ScratchWorkspace this time and that seems to have made the difference. I never would have thought that would impact the performance that much, I simply specified the same scratch workspace I have set in the ArcToolBox Environment. That's the only change I made in my testing configuration and that seems to have done it. The script ran from the command (using all the same input and output file settings and files) in about 6 minutes 49 seconds, actually about &lt;/SPAN&gt;&lt;STRONG&gt;40 seconds quicker&lt;/STRONG&gt;&lt;SPAN&gt; than the ArcCatalog run I did. I verified the watersheds and all file output and looks to be spot on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you, sir!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 15:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/processing-time-with-hydrology-nbsp-tools-in/m-p/74205#M1015</guid>
      <dc:creator>ThomasBurley</dc:creator>
      <dc:date>2011-04-12T15:12:01Z</dc:date>
    </item>
  </channel>
</rss>

