<?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 Batch merge within another script operation in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/batch-merge-within-another-script-operation/m-p/430548#M33837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I'm brand new to Python and i'm looking to add a merge function within a batch command that processes separate digimap files and creates boolean raster files from them. Any help would be really appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 00:00:35 GMT</pubDate>
    <dc:creator>RichardHargreaves</dc:creator>
    <dc:date>2016-12-13T00:00:35Z</dc:date>
    <item>
      <title>Batch merge within another script operation</title>
      <link>https://community.esri.com/t5/python-questions/batch-merge-within-another-script-operation/m-p/430548#M33837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I'm brand new to Python and i'm looking to add a merge function within a batch command that processes separate digimap files and creates boolean raster files from them. Any help would be really appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 00:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-merge-within-another-script-operation/m-p/430548#M33837</guid>
      <dc:creator>RichardHargreaves</dc:creator>
      <dc:date>2016-12-13T00:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Batch merge within another script operation</title>
      <link>https://community.esri.com/t5/python-questions/batch-merge-within-another-script-operation/m-p/430549#M33838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I undestand correctly, but I think you are referring to functions? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.python.org/3/tutorial/controlflow.html#more-on-defining-functions" title="https://docs.python.org/3/tutorial/controlflow.html#more-on-defining-functions" rel="nofollow noopener noreferrer" target="_blank"&gt;4. More Control Flow Tools — Python 3.5.2 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So within a for loop you can call another function for each loop step to return a result e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;myFunction&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; val &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; newval &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; raster &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; val
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; newval

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; r &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; rasterlist&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; rmod &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; myFunction&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3.14159265&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-merge-within-another-script-operation/m-p/430549#M33838</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-11T19:21:26Z</dc:date>
    </item>
  </channel>
</rss>

