<?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: Zonal Statistics as Table yields unexpected output in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056470#M40787</link>
    <description>&lt;P&gt;What is the null value of the raster? was it ignored in the zone file?&lt;/P&gt;&lt;P&gt;Does it provide correct results for one raster layer?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/image-analyst/how-zonal-statistics-works.htm" target="_blank"&gt;How the zonal statistics tools work—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 22:30:16 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-05-10T22:30:16Z</dc:date>
    <item>
      <title>Zonal Statistics as Table yields unexpected output</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056458#M40784</link>
      <description>&lt;P&gt;Dear Pros &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to calculate the zonal mean (for areas specified in a one-dimensional tif) for all raster slices of a multidimensional raster; resorting to the Zonal Statistics (ZS) and Zonal Statistics as Table (ZSaT) tools two problems arose:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Although the correct number of rows are written to the summary table produced by the ZSaT-Tool, the calculated means and other calculated summary statistics are not correct. The values in the multidimensional input raster are negative floats, but all summary statistics are positive.&lt;/LI&gt;&lt;LI&gt;The ZS-Tool does not accept the same input files as under (1) (process_as_multidimensional cannot be checked without error), correct values (i.e. negative values) seem to be assigned to the zones in the output raster for a single slice.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I would be thankful for suggestions on how to resolve the first and work around the second issue respectively.&lt;/P&gt;&lt;P&gt;Regards, Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 21:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056458#M40784</guid>
      <dc:creator>dazu</dc:creator>
      <dc:date>2021-05-10T21:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Zonal Statistics as Table yields unexpected output</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056470#M40787</link>
      <description>&lt;P&gt;What is the null value of the raster? was it ignored in the zone file?&lt;/P&gt;&lt;P&gt;Does it provide correct results for one raster layer?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/image-analyst/how-zonal-statistics-works.htm" target="_blank"&gt;How the zonal statistics tools work—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 22:30:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056470#M40787</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-05-10T22:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Zonal Statistics as Table yields unexpected output</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056752#M40811</link>
      <description>&lt;P&gt;Thank you again for your reply, DanPatterson.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 64bit raster is saved in CRF format, NoData value is 1,79e+308, they were ignored in the calculation. For a single slice, the results are plausible since smaller than 0.&lt;/P&gt;&lt;P&gt;I attached a sample project, which illustrates the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056752#M40811</guid>
      <dc:creator>dazu</dc:creator>
      <dc:date>2021-05-11T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Zonal Statistics as Table yields unexpected output</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056856#M40825</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/480330"&gt;@dazu&lt;/a&gt;&amp;nbsp;for reporting this issue and for attaching the project. Please let me know which software version you are using; I have used Pro 2.7.1 to test your cases.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Zonal Statistics:&lt;/STRONG&gt;&lt;BR /&gt;From your project I see that you could successfully run the Zonal Statistics tool processing as multidimensional (1st run of Zonal Statistics from History), creating the correct output ZonalSt_asMulti.CRF.&lt;BR /&gt;However, when you see the result in Contents, it shows the statistics of the tp variable, which is positive. The other 2 variables (e and evaow) has negative values, as you can see from the input value raster, era5_subset.CRF data.&lt;BR /&gt;To view the other variables, from the Multidimensional tab, choose the variable you want to view to see the values. These values seem correct to me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarmisthaChatterjee_0-1620762901413.png" style="width: 510px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/13073iFC0D4F386CE611E8/image-dimensions/510x243?v=v2" width="510" height="243" role="button" title="SarmisthaChatterjee_0-1620762901413.png" alt="SarmisthaChatterjee_0-1620762901413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Zonal Statistics as Table:&lt;/STRONG&gt;&lt;BR /&gt;Based on the inputs you have used, the output from Zonal Statistics as Table seems incorrect, I am investigating it further.&lt;/P&gt;&lt;P&gt;Please let me know if that answers your question.&lt;BR /&gt;Thanks,&lt;BR /&gt;Sarmistha&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 19:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1056856#M40825</guid>
      <dc:creator>SarmisthaChatterjee</dc:creator>
      <dc:date>2021-05-11T19:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Zonal Statistics as Table yields unexpected output</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1057261#M40855</link>
      <description>&lt;P&gt;On further investigation, it seems like the problem is related to using a multidimensional raster with multiple variables as input to zonal tools.&lt;/P&gt;&lt;P&gt;The workaround is to create another multidimensional raster with only one variable and use it as an input to the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/zonal-statistics.htm" target="_blank"&gt;Zonal Statistics&lt;/A&gt; and &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/zonal-statistics-as-table.htm" target="_blank"&gt;Zonal Statistics as Table&lt;/A&gt; tools.&lt;/P&gt;&lt;P&gt;You can create a multidimensional raster with one variable in multiple ways:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You can use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/multidimension/make-multidimensional-raster-layer.htm" target="_blank"&gt;Make Multidimensional Raster Layer&lt;/A&gt; tool and specify the variable you want and use the output as input to zonal tools. This will not create a new multidimensional raster file on disk.&lt;/LI&gt;&lt;LI&gt;You can also use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/multidimension/subset-multidimensional-raster.htm" target="_blank"&gt;Subset Multidimensional Raster&lt;/A&gt; tool, however, it will create a new multidimensional raster file on disk. Creating a new file may not be required for your analysis.&lt;/LI&gt;&lt;LI&gt;If you want to automate the workflow in Python using arcpy, you can use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/spatial-analyst/subset.htm" target="_blank"&gt;Subset&lt;/A&gt; function to create a temporary multidimensional raster with only one variable.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 12 May 2021 17:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/zonal-statistics-as-table-yields-unexpected-output/m-p/1057261#M40855</guid>
      <dc:creator>SarmisthaChatterjee</dc:creator>
      <dc:date>2021-05-12T17:31:52Z</dc:date>
    </item>
  </channel>
</rss>

