<?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: Iterating folder creation and clipping of rasters in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1105065#M8413</link>
    <description>&lt;P&gt;Got up to here but having further complication specifying which folder to send the cropped raster to, any ideas?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CBars_0-1633494705225.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24615i3295A1BD9E7BCCBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CBars_0-1633494705225.png" alt="CBars_0-1633494705225.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 04:31:57 GMT</pubDate>
    <dc:creator>CBars</dc:creator>
    <dc:date>2021-10-06T04:31:57Z</dc:date>
    <item>
      <title>Iterating folder creation and clipping of rasters</title>
      <link>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1104947#M8410</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;First post here, but I was wondering if anyone had information on how to make a model that performs the following:&lt;/P&gt;&lt;P&gt;Background: Making a model that will pull a polygon of a town within a county from a set, make a folder with its name, clip a DEM raster of the county to the shape of the town with a specific name, and create a contour shapefile of the trimmed DEM&lt;/P&gt;&lt;P&gt;Iterating this process for each town within the county&lt;/P&gt;&lt;P&gt;Let me know of any thoughts! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 19:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1104947#M8410</guid>
      <dc:creator>CBars</dc:creator>
      <dc:date>2021-10-05T19:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Iterating folder creation and clipping of rasters</title>
      <link>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1104966#M8411</link>
      <description>&lt;P&gt;should be fairly straightforward (appreciate it can be daunting at first).&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/iterate-feature-selection.htm" target="_blank"&gt;Iterate Feature Selection (ModelBuilder)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;group by your town name, this will also become the 'Value' variable with which you will use inline variable substitution to name the folders and files.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm" target="_blank"&gt;Inline variable substitution—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;next step - create a new folder, use the inline variable to set the folder name&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-folder.htm" target="_blank"&gt;Create Folder (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Clip, or Extract by Mask tool.&lt;/P&gt;&lt;P&gt;Contour tool (use inline variable again to name your final output) also remember to use the new folder path from Create Folder as another inline variable.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1104966#M8411</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-10-05T20:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Iterating folder creation and clipping of rasters</title>
      <link>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1104977#M8412</link>
      <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1104977#M8412</guid>
      <dc:creator>CBars</dc:creator>
      <dc:date>2021-10-05T20:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Iterating folder creation and clipping of rasters</title>
      <link>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1105065#M8413</link>
      <description>&lt;P&gt;Got up to here but having further complication specifying which folder to send the cropped raster to, any ideas?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CBars_0-1633494705225.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24615i3295A1BD9E7BCCBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CBars_0-1633494705225.png" alt="CBars_0-1633494705225.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 04:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1105065#M8413</guid>
      <dc:creator>CBars</dc:creator>
      <dc:date>2021-10-06T04:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Iterating folder creation and clipping of rasters</title>
      <link>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1105159#M8414</link>
      <description>&lt;P&gt;I almost never use model builder unfortunately.&amp;nbsp; I did have a play however and got it to work, though it is convoluted and there's likely much better ways of doing it.&lt;/P&gt;&lt;P&gt;Use Parse Path (insert -&amp;gt; model builder tools -&amp;gt; parse path) and connect it to your Create Folder green output variable. parse path type = PATH&lt;/P&gt;&lt;P&gt;Rename the output variable from Parse Path to 'FilePath' (without the quotes)&lt;/P&gt;&lt;P&gt;You don't need to have Feature Class to Shapefile, you can just use the green output from Iterate Feature Selection as the clipping geometry for the Clip tool.&amp;nbsp; Obviously add the clip tool also.&lt;/P&gt;&lt;P&gt;connect FilePath variable you just renamed to the Clip tool, and set it as a Precondition only.&lt;/P&gt;&lt;P&gt;In your Clip tool properties, set the output filename as&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%FilePath%\%Value%\DEM.tif&lt;/LI-CODE&gt;&lt;P&gt;also be aware clip can be an intensive process, I would create a small test dataset over a small clipping area, maybe only 2 or 3 features(towns) to use initially.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 13:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/iterating-folder-creation-and-clipping-of-rasters/m-p/1105159#M8414</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-10-06T13:53:31Z</dc:date>
    </item>
  </channel>
</rss>

