<?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: Using Raster Calculator to Convert 0 values to NoData in a raster? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/using-raster-calculator-to-convert-0-values-to/m-p/192279#M10878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to use Raster Calculator Map Algebra to convert the values of 0 from blue area to NoData in the overlapping area behind there...&lt;BR /&gt;&lt;BR /&gt;This expression below converts those pixels to 0..&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;Con("polrecl", 0, "maskdpoly")&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what you're missing are the IsNull and SetNull tools, which are very useful for this kind of thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These two (equivalent) Raster Calculator expressions should do what you want, if I'm understanding you correctly:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;&lt;BR /&gt;SetNull(not IsNull("polrecl"),"maskdpoly")&lt;BR /&gt;Con(IsNull("polrecl"),"maskdpoly")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Extract By Mask tool may do what you want without any map algebra, or you could even just set the geoprocessing environment mask to control which cells are used by the Zonal Statistics As Table tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a zillion ways to do things in Spatial Analyst, as you can see!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2012 21:41:46 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-06-08T21:41:46Z</dc:date>
    <item>
      <title>Using Raster Calculator to Convert 0 values to NoData in a raster?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-raster-calculator-to-convert-0-values-to/m-p/192278#M10877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using Arc 10.0........&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 2 files... a raster made from a Polyline shapefile and a masked area from a polygon...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15077[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use Raster Calculator Map Algebra to convert the values of 0 from blue area to NoData in the overlapping area behind there...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This expression below converts those pixels to 0..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Con("polrecl", 0, "maskdpoly")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to convert to "NoData" instead because I want to do statistics on the area inside the boundary only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried Con("polrecl", NoData, "maskdpoly") but this doesn't work...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to this stuff, can anyone assist?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 20:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-raster-calculator-to-convert-0-values-to/m-p/192278#M10877</guid>
      <dc:creator>JesseBallew</dc:creator>
      <dc:date>2012-06-08T20:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Raster Calculator to Convert 0 values to NoData in a raster?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-raster-calculator-to-convert-0-values-to/m-p/192279#M10878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to use Raster Calculator Map Algebra to convert the values of 0 from blue area to NoData in the overlapping area behind there...&lt;BR /&gt;&lt;BR /&gt;This expression below converts those pixels to 0..&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;Con("polrecl", 0, "maskdpoly")&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what you're missing are the IsNull and SetNull tools, which are very useful for this kind of thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These two (equivalent) Raster Calculator expressions should do what you want, if I'm understanding you correctly:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;&lt;BR /&gt;SetNull(not IsNull("polrecl"),"maskdpoly")&lt;BR /&gt;Con(IsNull("polrecl"),"maskdpoly")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Extract By Mask tool may do what you want without any map algebra, or you could even just set the geoprocessing environment mask to control which cells are used by the Zonal Statistics As Table tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a zillion ways to do things in Spatial Analyst, as you can see!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 21:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-raster-calculator-to-convert-0-values-to/m-p/192279#M10878</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-06-08T21:41:46Z</dc:date>
    </item>
  </channel>
</rss>

