<?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 builder model: %name% from iteration give issue into raster calculator in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/builder-model-name-from-iteration-give-issue-into/m-p/628131#M20972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am building a model in builder model, with "Iterate raster" (i have a lot of raster which should be processed the same way and obviuosly i need to keep the original name %name%) and "raster calculator".&lt;/P&gt;&lt;P&gt;At one point, I have a raster called "VP_%name%" that I need to use into "raster calculator". The way raster calculator use the raster name is like "%ratser%". Thus for my raster "VP_%name%", the way to use it into raster calculator formula is to use "%VP_%name%%" but raster calculator doesn't recognize this raster (I believe, the&amp;nbsp; double %% or %VP_% is very confusing to get the name of the raster it has to use). How can I solve the problem?&lt;/P&gt;&lt;P&gt;I have 100s of raster to process and i can not manually, one raster after the other one. I am quite confortable with model builder but I dont know how to write in Python. I will appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Jun 2018 15:42:34 GMT</pubDate>
    <dc:creator>yvanaltchenko</dc:creator>
    <dc:date>2018-06-24T15:42:34Z</dc:date>
    <item>
      <title>builder model: %name% from iteration give issue into raster calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/builder-model-name-from-iteration-give-issue-into/m-p/628131#M20972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am building a model in builder model, with "Iterate raster" (i have a lot of raster which should be processed the same way and obviuosly i need to keep the original name %name%) and "raster calculator".&lt;/P&gt;&lt;P&gt;At one point, I have a raster called "VP_%name%" that I need to use into "raster calculator". The way raster calculator use the raster name is like "%ratser%". Thus for my raster "VP_%name%", the way to use it into raster calculator formula is to use "%VP_%name%%" but raster calculator doesn't recognize this raster (I believe, the&amp;nbsp; double %% or %VP_% is very confusing to get the name of the raster it has to use). How can I solve the problem?&lt;/P&gt;&lt;P&gt;I have 100s of raster to process and i can not manually, one raster after the other one. I am quite confortable with model builder but I dont know how to write in Python. I will appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jun 2018 15:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/builder-model-name-from-iteration-give-issue-into/m-p/628131#M20972</guid>
      <dc:creator>yvanaltchenko</dc:creator>
      <dc:date>2018-06-24T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: builder model: %name% from iteration give issue into raster calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/builder-model-name-from-iteration-give-issue-into/m-p/628132#M20973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a tricky one.&amp;nbsp; I suspect the reason it doesn't like the filename is that the percent signs are used in &lt;EM&gt;Modelbuilder&lt;/EM&gt; for &lt;EM&gt;Online Variable Substitution&lt;/EM&gt;.&amp;nbsp; (You did not state it, so I am assuming you are not already using &lt;EM&gt;Inline Variable Substitution&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm"&gt;Examples of inline model variable substitution—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One potential solution would be to do some processing before running the main model so as to rename the files to not have the percentage signs.&amp;nbsp; This would likely have to be done outside Modelbuilder, as the typical way to easily rename files is to employ&lt;EM&gt; Inline Variable Substitution&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be a way to employ "Escape characters" to allow Modelbuilder to realize that the percent signs are not part of &lt;EM&gt;online variable substitution&lt;/EM&gt;.&amp;nbsp; Offhand, though, I don't know what those are for &lt;EM&gt;Modelbuilder&lt;/EM&gt;.&amp;nbsp; As an example, in Python \ and r are used in certain cases to allow string input with certain characters to be used without being interpreted as something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 15:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/builder-model-name-from-iteration-give-issue-into/m-p/628132#M20973</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2018-06-25T15:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: builder model: %name% from iteration give issue into raster calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/builder-model-name-from-iteration-give-issue-into/m-p/628133#M20974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found a possible solution for this in Modelbuilder:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000010408" title="https://support.esri.com/en/technical-article/000010408"&gt;How To: Create a model that makes a correctly formatted query from a string input with special characters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 15:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/builder-model-name-from-iteration-give-issue-into/m-p/628133#M20974</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2018-06-25T15:19:57Z</dc:date>
    </item>
  </channel>
</rss>

