<?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: ModelBuilder: renaming of raster files during iterative model run in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286401#M9870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you construct a an intermediate filename using a built-in variables, the system won't modify them when the model is validated. (Note, %scratchfolder% is 10.1 only, %scratchworkspace% would be used in earlier versions).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;%scratchfolder%\clip_%n%.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;will be interpreted at runtime as&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;D:\work\scratch\clip_0.tif&lt;BR /&gt;D:\work\scratch\clip_1.tif&lt;BR /&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending on the iteration, the built-in iteration variable used could be either %n% or %i%. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 14:31:49 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2013-04-24T14:31:49Z</dc:date>
    <item>
      <title>ModelBuilder: renaming of raster files during iterative model run</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286398#M9867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using an iterative model to run a set of raster files (as list variables) through several tools, namely: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. define projection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. build attribute table &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. clip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. project raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. resample&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. clip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. calculate statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the model reaches step 4 (Project Raster), it fails to execute. I identified the problem as being the numeric characters at the beginning of each filename in the intermediate dataset between steps 3 and 4; that is, the filenames that are output from step 3 (Clip) all begin with a number (e.g. 01_Clip.tif, 02_Clip.tip, 03_Clip.tif, etc.). These filenames were automatically generated by Model Builder when I built the model. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To remedy the problem, I manually changed each filename in that intermediate dataset, such that they end with a number (e.g. Clip_01.tif, Clip_02.tif, Clip_03.tif, etc.). However, as soon as I ran the model again, those filenames defaulted back to their original format, and the same problem occurred at step 4. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am unsure of how to control the filenames if Model Builder automatically generates an unacceptable format at the start of each model run. Any suggestions would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 19:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286398#M9867</guid>
      <dc:creator>DanBlythe</dc:creator>
      <dc:date>2013-04-23T19:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: renaming of raster files during iterative model run</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286399#M9868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Consider the use of&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002w00000060000000" rel="nofollow" target="_blank"&gt; inline variables&lt;/A&gt;&lt;SPAN&gt; to modify and harvest the name of the raster.&amp;nbsp; Perhaps using the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//004000000004000000" rel="nofollow" target="_blank"&gt;Calculate Value tool&lt;/A&gt;&lt;SPAN&gt; in Model Builder to modify it if necessary.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 10:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286399#M9868</guid>
      <dc:creator>JeffreySwain</dc:creator>
      <dc:date>2013-04-24T10:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: renaming of raster files during iterative model run</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286400#M9869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you send a graphic of your model and what projection you are defining and what projection you are projecting to. I re-created the tools in a model and mine fails at that step also. I will get back to you soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After playing a bit with my model, first I do not set anything to intermediate, I send all my data that I do not want to keep to a temp folder - this way I can view it if i want and keep it if I want or delete it. Next, projecting data should be done as soon as possible, so if you can I would define projection build attirubutes then reproject. My model above failed because the&amp;nbsp; project raster tool is not reading the current projection so it fails. As soon as I 'break' the model at clip and use the clip output as the input to project raster there is no longer a problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 12:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286400#M9869</guid>
      <dc:creator>als21</dc:creator>
      <dc:date>2013-04-24T12:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: renaming of raster files during iterative model run</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286401#M9870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you construct a an intermediate filename using a built-in variables, the system won't modify them when the model is validated. (Note, %scratchfolder% is 10.1 only, %scratchworkspace% would be used in earlier versions).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;%scratchfolder%\clip_%n%.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;will be interpreted at runtime as&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;D:\work\scratch\clip_0.tif&lt;BR /&gt;D:\work\scratch\clip_1.tif&lt;BR /&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending on the iteration, the built-in iteration variable used could be either %n% or %i%. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 14:31:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286401#M9870</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-04-24T14:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: renaming of raster files during iterative model run</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286402#M9871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Curt, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your suggestion. Unfotunately, it does not work. I specified %scratchworkspace% as the Clip-output filename (I'm using 10.0), but the filenames default to the original problematic formatting (01_Clip.tif, 02_Clip.tif, etc.) as soon as I validate or run the model. I tried a similar approach yesterday by inserting a string variable names "scratch" and specifing "%scratch%" as a prefix to each filename. The same problem occured, however. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems as though it may be a bug within the version of Model Builder that I'm using. I'm surprised by how difficult it is to control the filename of intermediate datasets.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you construct a an intermediate filename using a built-in variables, the system won't modify them when the model is validated. (Note, %scratchfolder% is 10.1 only, %scratchworkspace% would be used in earlier versions).&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;%scratchfolder%\clip_%n%.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;will be interpreted at runtime as&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;D:\work\scratch\clip_0.tif&lt;BR /&gt;D:\work\scratch\clip_1.tif&lt;BR /&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on the iteration, the built-in iteration variable used could be either %n% or %i%. &lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 17:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286402#M9871</guid>
      <dc:creator>JulieButler</dc:creator>
      <dc:date>2013-04-24T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: renaming of raster files during iterative model run</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286403#M9872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is your ArcGIS version and SP? (See Help &amp;gt; About ArcMap) If not on the most recent, do update!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 17:27:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286403#M9872</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-04-24T17:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: renaming of raster files during iterative model run</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286404#M9873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julie&lt;/P&gt;&lt;P&gt;I am using model builder to rename different dbf tables name, for the same using rename tool using inline variable %n%. The names are changed what I wish to do is instead of starting the series from 0, start it from 1, is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 05:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-renaming-of-raster-files-during/m-p/286404#M9873</guid>
      <dc:creator>PoojaPandey1</dc:creator>
      <dc:date>2017-07-10T05:04:58Z</dc:date>
    </item>
  </channel>
</rss>

