<?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: Model builder: I need to run a tool without creating unecessary clipped outputs in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876049#M3714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the delayed response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Dan: I had defined the scratch workspace as %scratchworkspace% but it&lt;BR /&gt;wasn't until I realized that I had to update that field in environments as well&lt;BR /&gt;as model properties and I took your advice to go with in_memory as the scratch&lt;BR /&gt;workspace as well as choosing to override outputs that I got the output I was&lt;BR /&gt;looking for. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry Tiffany, but I have no knowledge of coding, something which I think I&lt;BR /&gt;will have to pick up at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now that I have my basic modelling running I realized I could add one&lt;BR /&gt;more process to it. The converted values need to be converted to point data so&lt;BR /&gt;I added the From Raster to Point conversion tool to the end of the model,&lt;BR /&gt;making the original final output intermediate data using the same solution as&lt;BR /&gt;above. I cannot tell if the tool will successfully run because ModelBuilder is &lt;EM&gt;adamant&lt;/EM&gt; on not letting me define the destination location of the final output (again, the tool will need to be run&lt;BR /&gt;with many inputs and so the output must be defined each time). Every time I try&lt;BR /&gt;to clear the output field it returns to I:\MSc GIS &amp;amp; Remote&lt;BR /&gt;Sensing\GY638\GY638 Project\Land cover data\RasterT_results1.shp (as seen&lt;BR /&gt;below). Any idea on why this might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="clip-convert-point model.PNG" class="image-1 jive-image" src="/legacyfs/online/188224_clip-convert-point model.PNG" style="width: 620px; height: 353px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 15:58:01 GMT</pubDate>
    <dc:creator>RuthLowry1</dc:creator>
    <dc:date>2016-03-01T15:58:01Z</dc:date>
    <item>
      <title>Model builder: I need to run a tool without creating unecessary clipped outputs</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876046#M3711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm completely new to model builder, but as I've about 90 rasters to run through several different processes I figured I'd construct a simple clip tool which then applies a function to the clipped data to convert it from Kelvin to Celcius values. My model looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="clip-convert model.PNG" class="image-1 jive-image" src="/legacyfs/online/187313_clip-convert model.PNG" style="width: 620px; height: 237px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool did not successfully run in ArcMap (it would fail while running the clip) until I had altered the model for a couple of hours. The tool now works more or less as desired; it clips the original data, and generates a second output with the new values. However, the tool would only work when I made the first output ("clipped raster") a paramater. Therefore the tool is not ideal as 1. having to choose an output location for the clip each time is less efficient and 2. as the clip itself is not needed superfluous data will be generated. I am not sure I completely understand how scratch data or scratch workspaces work, but is there any way that I would be able to set the "clipped raster" output as intermediate data and still have a functioning tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other notes: on a previous attempt at constructing the model, I got the clip to run successfully, but it was always the raster calculator operation that failed; an error 000539 was always returned. Any idea on why this might be so? The function I entered into the raster calculator was ("%Clipped raster%" * 0.02) -273, 0.02 being a scaling factor and of course the 273 to convert from Kelvin to Celsius. However, I do not believe that syntax was the issue as I ran the function in the raster calculator in the system toolbox and there were no issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 23:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876046#M3711</guid>
      <dc:creator>RuthLowry1</dc:creator>
      <dc:date>2016-02-23T23:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder: I need to run a tool without creating unecessary clipped outputs</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876047#M3712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your raster bounds were rectangular, you could simplify everything by simply setting the analysis extent and doing the math, skipping the clip altogether.&amp;nbsp; Alternately, set your environments to overwriteoutputs and reuse the clipped name.. go one step further and specify in_memory as the destination location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 23:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876047#M3712</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-23T23:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder: I need to run a tool without creating unecessary clipped outputs</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876048#M3713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I second the overwriteoutputs options and suggest switching to python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using Modelbuilder, I discovered the model ran better from python than using the modelbuilder itself in ArcCatalog. The reason is that Modelbuilder kept getting confused about the datasource for my parameter. Once in python, it no longer needed to be defined as a parameter and I was able to specify the exact pathway and connection for the file and my code now runs smoothly. The same concept could be happening in your model. Try exporting it as python script and defining the pathway. Remember to add in the script for overwrite:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14563327757751303 jive_macro_code jive_text_macro" data-renderedposition="216_8_872_16" jivemacro_uid="_14563327757751303"&gt;&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 16:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876048#M3713</guid>
      <dc:creator>TiffanySelvidge1</dc:creator>
      <dc:date>2016-02-24T16:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder: I need to run a tool without creating unecessary clipped outputs</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876049#M3714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the delayed response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Dan: I had defined the scratch workspace as %scratchworkspace% but it&lt;BR /&gt;wasn't until I realized that I had to update that field in environments as well&lt;BR /&gt;as model properties and I took your advice to go with in_memory as the scratch&lt;BR /&gt;workspace as well as choosing to override outputs that I got the output I was&lt;BR /&gt;looking for. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry Tiffany, but I have no knowledge of coding, something which I think I&lt;BR /&gt;will have to pick up at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now that I have my basic modelling running I realized I could add one&lt;BR /&gt;more process to it. The converted values need to be converted to point data so&lt;BR /&gt;I added the From Raster to Point conversion tool to the end of the model,&lt;BR /&gt;making the original final output intermediate data using the same solution as&lt;BR /&gt;above. I cannot tell if the tool will successfully run because ModelBuilder is &lt;EM&gt;adamant&lt;/EM&gt; on not letting me define the destination location of the final output (again, the tool will need to be run&lt;BR /&gt;with many inputs and so the output must be defined each time). Every time I try&lt;BR /&gt;to clear the output field it returns to I:\MSc GIS &amp;amp; Remote&lt;BR /&gt;Sensing\GY638\GY638 Project\Land cover data\RasterT_results1.shp (as seen&lt;BR /&gt;below). Any idea on why this might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="clip-convert-point model.PNG" class="image-1 jive-image" src="/legacyfs/online/188224_clip-convert-point model.PNG" style="width: 620px; height: 353px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 15:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876049#M3714</guid>
      <dc:creator>RuthLowry1</dc:creator>
      <dc:date>2016-03-01T15:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder: I need to run a tool without creating unecessary clipped outputs</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876050#M3715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output path is breaking just about every rule of acceptable path names when working with rasters... and in general practice... no spaces, no weird characters (except underscore), short (&amp;lt;128ish I think characters), drives should be real (or in memory... usb drives have caused me no end of problems when I teach in class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So perhaps it is the input locations as well.&amp;nbsp; I would suggest a reconsolidation and move stuff to simpler folders or into a geodatabase.&amp;nbsp; Once verified there, then you have removed one of the common issues with things failing... file and folder structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 16:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-i-need-to-run-a-tool-without/m-p/876050#M3715</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-01T16:15:02Z</dc:date>
    </item>
  </channel>
</rss>

