<?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: Iterate rasters into SETNULL giving error in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164447#M9161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chenay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tend to string the individual tools together in model builder rather than use the raster calculator, it sounds like it supports a different syntax which confused me. Storm in a tea cup!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2013 08:06:21 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2013-11-28T08:06:21Z</dc:date>
    <item>
      <title>Iterate rasters into SETNULL giving error</title>
      <link>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164444#M9158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the SETNULL funtion in the raster calculator to convert all my minus values to NODATA. As I need to run this analysis on a large number of EVI images I have tried to put it in a model with an iterator but it runs into the following error - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: rcexec() &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 8, in rcexec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 010093: Output raster format UNKNOWN is unsupported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Raster Calculator).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a single raster my SETNULL expression works so this has got to do with my use of the iterator output in the expression.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression = SetNull("%MCD43_EVI_interpolated_SA_2000049.tif%" &amp;lt; 0,"%MCD43_EVI_interpolated_SA_2000049.tif%") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Output = %Name%_c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chenay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 13:02:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164444#M9158</guid>
      <dc:creator>ChenaySimms</dc:creator>
      <dc:date>2013-11-27T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate rasters into SETNULL giving error</title>
      <link>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164445#M9159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just an idea but if you are stringing this all up in a model it may be easier if you use the SetNull tool itself rather than call it via the raster calculator tool. It will make your model more understandable rather than a "black box" call to the raster calculator tool which itself can call many other tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also it will ensure you are filling the parameters in correctly. If you look at the help SetNull parameters are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;in_conditional_raster, in_false_raster_or_constant, {where_clause})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but your code appears to have the where part at the beginning?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 15:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164445#M9159</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-11-27T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate rasters into SETNULL giving error</title>
      <link>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164446#M9160</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;BR /&gt;&lt;SPAN&gt;Thanks, forgot about the SETNULL tool, that will definately make life easier &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did sort my problem out, I added an extension to the end of the output and now at least the model runs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the expression, it gave the correct results when I ran it on a single raster. I double checked it agains the info in the Help and the syntax I have used is the same as that given in the Help. The model outputs that I have spot checked also seem correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chenay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 04:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164446#M9160</guid>
      <dc:creator>ChenaySimms</dc:creator>
      <dc:date>2013-11-28T04:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate rasters into SETNULL giving error</title>
      <link>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164447#M9161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chenay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tend to string the individual tools together in model builder rather than use the raster calculator, it sounds like it supports a different syntax which confused me. Storm in a tea cup!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 08:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/iterate-rasters-into-setnull-giving-error/m-p/164447#M9161</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-11-28T08:06:21Z</dc:date>
    </item>
  </channel>
</rss>

