<?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 Split single raster within multiple polygons in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691779#M10073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Will Zonal Statistics handle this for you?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 19:32:57 GMT</pubDate>
    <dc:creator>JimCousins</dc:creator>
    <dc:date>2013-08-27T19:32:57Z</dc:date>
    <item>
      <title>How to Split single raster within multiple polygons</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691778#M10072</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 have a raster ('slope') which content only one attribute in the table. On the other hand I have a feature which content several polygons (catchments) in the attributes table. I would like to obtain the area or count of the 'slope' for each catchments. Are there any faster way to do it without separating the catchments and mask the raster one by one? Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 10:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691778#M10072</guid>
      <dc:creator>Jacqueline_IsabellaGisen</dc:creator>
      <dc:date>2013-08-27T10:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split single raster within multiple polygons</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691779#M10073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Will Zonal Statistics handle this for you?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 19:32:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691779#M10073</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2013-08-27T19:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split single raster within multiple polygons</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691780#M10074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you used python before?&amp;nbsp; You could use a searchcursor to loop through the catchments.&amp;nbsp; For each catchment you could then mask the raster and perform whatever calculations you needed.&amp;nbsp; Sample code is below, you would just need to add the mask and calculations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
shapefile = r"catchments"&amp;nbsp; ##Folder path of your catchments
rows = arcpy.SearchCursor(shapefile, "", "", "FID") 

# Iterate through the rows in the cursor 
for row in rows: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; in_select = shapefile&amp;nbsp; ##Folder path of your catchments
&amp;nbsp;&amp;nbsp;&amp;nbsp; out_select = r"outputfeature"&amp;nbsp; ##Output for each catchment
&amp;nbsp;&amp;nbsp;&amp;nbsp; where_clause = "\"FID\" = %d"% (row.FID)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Select_analysis(in_select, out_select, where_clause) ##selects feature

&amp;nbsp;&amp;nbsp;&amp;nbsp; ###Mask and perform calculations
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(out_select)&amp;nbsp; ###Delete your catchment and start loop over&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691780#M10074</guid>
      <dc:creator>TrevorHavelka</dc:creator>
      <dc:date>2021-12-12T05:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split single raster within multiple polygons</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691781#M10075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried again with zonal statistic as table and it works! The problem previously was I uncheck the Ignore NoData in calculation option. Once it is checked, it works. Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 07:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691781#M10075</guid>
      <dc:creator>Jacqueline_IsabellaGisen</dc:creator>
      <dc:date>2013-08-28T07:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split single raster within multiple polygons</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691782#M10076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's great. Could you mark the thread as answered, so people know you reached a solution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 13:34:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-split-single-raster-within-multiple/m-p/691782#M10076</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2013-08-28T13:34:47Z</dc:date>
    </item>
  </channel>
</rss>

