<?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 How do you dynamically provide the zone fieldname to Zonal Stats as Table in Model Builder? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-do-you-dynamically-provide-the-zone-fieldname/m-p/446263#M15028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model, which contains a sub-model (see attached attached).&amp;nbsp; The main model iterates through feature classes in a gdb and operates on them by passing them to sub-models.&amp;nbsp; One of these sub-models takes the FC, uses its name to find a corresponding raster, then uses zonal statistics as table to calculate some summary data, join it to the FC and finally delete the join.&amp;nbsp; At least, that's what I want it to do.&amp;nbsp; If I use this sub-model on its own and provide the fc and zonal field manually, it works fine.&amp;nbsp; The problem is I can't figure out how to use the model to provide the field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went to the trouble of ensuring that every FC the main model will encounter has a field simply called 'name', which is a unique field I want to use as the zone field.&amp;nbsp; I tried to just put 'name' as the zone field in the sub-model's Zonal Stats process, but it gets deleted once I click away from that field.&amp;nbsp; I tried using a variable, but that didn't seem to work either.&amp;nbsp; Surely there is a way to do this, but I don't see anything about this in the documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2020 18:24:59 GMT</pubDate>
    <dc:creator>ForrestFollett1</dc:creator>
    <dc:date>2020-04-09T18:24:59Z</dc:date>
    <item>
      <title>How do you dynamically provide the zone fieldname to Zonal Stats as Table in Model Builder?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-you-dynamically-provide-the-zone-fieldname/m-p/446263#M15028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model, which contains a sub-model (see attached attached).&amp;nbsp; The main model iterates through feature classes in a gdb and operates on them by passing them to sub-models.&amp;nbsp; One of these sub-models takes the FC, uses its name to find a corresponding raster, then uses zonal statistics as table to calculate some summary data, join it to the FC and finally delete the join.&amp;nbsp; At least, that's what I want it to do.&amp;nbsp; If I use this sub-model on its own and provide the fc and zonal field manually, it works fine.&amp;nbsp; The problem is I can't figure out how to use the model to provide the field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went to the trouble of ensuring that every FC the main model will encounter has a field simply called 'name', which is a unique field I want to use as the zone field.&amp;nbsp; I tried to just put 'name' as the zone field in the sub-model's Zonal Stats process, but it gets deleted once I click away from that field.&amp;nbsp; I tried using a variable, but that didn't seem to work either.&amp;nbsp; Surely there is a way to do this, but I don't see anything about this in the documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-you-dynamically-provide-the-zone-fieldname/m-p/446263#M15028</guid>
      <dc:creator>ForrestFollett1</dc:creator>
      <dc:date>2020-04-09T18:24:59Z</dc:date>
    </item>
  </channel>
</rss>

