<?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: How to cookie-cut an raster file with an polygon? in 3D Questions</title>
    <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345569#M2086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I &lt;EM&gt;think&lt;/EM&gt; it is like:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14462302642648867 jive_macro_code jive_text_macro" data-renderedposition="29_8_912_16" jivemacro_uid="_14462302642648867"&gt;&lt;P&gt;SetNull(if this condition is false, use these cell values)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...so:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14462302698171568 jive_macro_code jive_text_macro" data-renderedposition="87_8_912_16" jivemacro_uid="_14462302698171568"&gt;&lt;P&gt;SetNull("Lakes","YourOtherRaster")&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2015 18:38:28 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2015-10-30T18:38:28Z</dc:date>
    <item>
      <title>How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345561#M2078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to cut out the shapes of some lakes in my raster layer, I have the lakes both as polygons and raster. This would really help! Thank you! Using ArcMap 10.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 17:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345561#M2078</guid>
      <dc:creator>NicolinaLindblad</dc:creator>
      <dc:date>2015-10-30T17:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345562#M2079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many ways to do this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1.) &lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#//009z0000002n000000"&gt;Extract by Mask&lt;/A&gt;​ using either raster or polygon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2.) &lt;A href="https://desktop.arcgis.com/en/desktop/latest/manage-data/raster-and-images/using-the-clip-button.htm"&gt;Clip via Image Analysis Window&lt;/A&gt;​ using polygon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.) &lt;A href="http://resources.arcgis.com/fr/help/main/10.1/index.html#//009z00000005000000"&gt;Con &lt;/A&gt;using raster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 17:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345562#M2079</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-10-30T17:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345563#M2080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I might have been unclear, I would like to remove the areas of the lakes from my rater layer! So the opposite result from "extract mask". You don't happen to know? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 17:54:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345563#M2080</guid>
      <dc:creator>NicolinaLindblad</dc:creator>
      <dc:date>2015-10-30T17:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345564#M2081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//009z00000005000000"&gt;Con&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_144622775452080" data-renderedposition="50_8_912_16" jivemacro_uid="_144622775452080"&gt;&lt;P&gt;Con(IsNull("LakesRaster"),"YourOtherRaster")&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: ...or &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Set_Null/009z00000007000000/"&gt;SetNull&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;edit: ...or &lt;A href="http://blogs.esri.com/esri/arcgis/2009/08/07/clipping-rasters-part-c-reverse-clipping-on-a-raster-aka-masking/"&gt;this extremely convoluted method&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 17:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345564#M2081</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-10-30T17:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345565#M2082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you having issues with things that you would normally use because of nodata values or something? There seems to be more to this question.&amp;nbsp; As Darren mentions, there are many obvious solutions but often considerations of nodata values, raster extents and/or snap rasters are forgotten or omitted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 18:00:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345565#M2082</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-30T18:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345566#M2083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/setting-cell-values-to-nodata-with-setnull.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/setting-cell-values-to-nodata-with-setnull.htm"&gt;Setting values to NoData with Set Null—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;ahhh&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 18:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345566#M2083</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-30T18:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345567#M2084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! So if my raster with the lakes that i want to remove are called "Lakes" and my other raster layer is called "Uganda". How would the "Set Null" function be written then, I am very new to GIS, so appreciate all the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 18:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345567#M2084</guid>
      <dc:creator>NicolinaLindblad</dc:creator>
      <dc:date>2015-10-30T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345568#M2085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read the link carefully, this is the simplest because you have your lakes layer so you lakes have some value, hopefully other than 0, so wherever the lake is "true" (ie it has a value) then it assign a value of no data to the output layer, hence moving your unganda data into the output and leaving no data cells where the lakes once were.&lt;/P&gt;&lt;P&gt;Should this not be to your liking, then I can give examples involving the Con for conditional operations, or Plus with conditions etc.&amp;nbsp; The trick is to make it simple...you need nodata (i assume otherwise you would have specified) where the lakes once were..&amp;nbsp; good luck&lt;/P&gt;&lt;H3 style="margin-top: 1.26316em; margin-bottom: 0.63158em; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: 500; font-size: 1.5rem; color: #4d4d4d;"&gt;Without an expression&lt;/H3&gt;&lt;P style="font-size: 0.875rem; margin-bottom: 1.71429em; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;The image below uses an input raster (&lt;SPAN class="usertext" style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold;"&gt;InRas1&lt;/SPAN&gt;) as the condition. When the value for a cell on &lt;SPAN class="usertext" style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold;"&gt;InRas1&lt;/SPAN&gt; is true (not 0 or NoData), NoData is assigned to that cell location; otherwise, the value in &lt;SPAN class="usertext" style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold;"&gt;InRas2&lt;/SPAN&gt; is written as the output value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 18:35:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345568#M2085</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-30T18:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345569#M2086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I &lt;EM&gt;think&lt;/EM&gt; it is like:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14462302642648867 jive_macro_code jive_text_macro" data-renderedposition="29_8_912_16" jivemacro_uid="_14462302642648867"&gt;&lt;P&gt;SetNull(if this condition is false, use these cell values)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...so:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14462302698171568 jive_macro_code jive_text_macro" data-renderedposition="87_8_912_16" jivemacro_uid="_14462302698171568"&gt;&lt;P&gt;SetNull("Lakes","YourOtherRaster")&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 18:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345569#M2086</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-10-30T18:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345570#M2087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just like in the help files, no helping too much &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 19:16:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345570#M2087</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-30T19:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345571#M2088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but function didn't work unfortunantely. It could not run. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 08:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345571#M2088</guid>
      <dc:creator>NicolinaLindblad</dc:creator>
      <dc:date>2015-10-31T08:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345572#M2089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I have read through it three times but I still didn't get it to work... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 08:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345572#M2089</guid>
      <dc:creator>NicolinaLindblad</dc:creator>
      <dc:date>2015-10-31T08:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345573#M2090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;provide the raster names then and the specific error message&lt;/LI&gt;&lt;LI&gt;also, we have been assuming that you have actually check that everything is in the same coordinate system, by examining each layers extent and coordinate system in properties (right-click on the layer, select properties and examine the tabs)&lt;/LI&gt;&lt;LI&gt;you are working in a path with no spaces&lt;/LI&gt;&lt;LI&gt;the type of rasters you are using&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;"not working" is like saying "it won't start"&amp;nbsp;&amp;nbsp; no context, not enough information to be of help &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 09:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345573#M2090</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-31T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to cookie-cut an raster file with an polygon?</title>
      <link>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345574#M2091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This "extremely convoluted method" is not a bad way to try if you're new to Arc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you need to create a layer that is the inverse of your lakes polygons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this by drawing a polygon layer that covers entirely your raster - then use the Union tool to union this polygon with your lakes polygon - then delete the lakes from the resulting layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next use the tool search and search for "clip raster" and choose Clip (Data Management).&amp;nbsp; Use the result of the Union tool as the Output Extent and ensure the Maintain Clipping Extent option is ticked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 08:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-to-cookie-cut-an-raster-file-with-an-polygon/m-p/345574#M2091</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-11-06T08:52:36Z</dc:date>
    </item>
  </channel>
</rss>

