<?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 Area weighted average for light data in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/area-weighted-average-for-light-data/m-p/568447#M1832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new user of ArcGIS and GIS data.&amp;nbsp; I currently have a project where we are using light data and as a starting point we are replicating the paper by Henderson et al. In their paper, they calculate the area weighted average of light data using the AML code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* area-weighted zonal stats: total digital number*area&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ular%grd%t = zonalstats(ctryliggrid,l%grd%nm * gluareag,sum,DATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where l%grd%nm&amp;nbsp; are rasters with the light data and gluareag is an ascii file with area of grid cell in square km&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They later divide by the country area to get the area weighted average&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone explain why l%grd%nm * gluareag creates the weighted sum at the grid level&amp;nbsp; to be used in the Zonal &lt;BR /&gt;Statistics?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have a shapefile of Africa at the first administrative level, when I calculate the zonal statistics i get statistics at that level but i would also like to have it at the country level.The shapefile contains country as an attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2016 16:37:11 GMT</pubDate>
    <dc:creator>Jean_PhilippeWan</dc:creator>
    <dc:date>2016-11-11T16:37:11Z</dc:date>
    <item>
      <title>Area weighted average for light data</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/area-weighted-average-for-light-data/m-p/568447#M1832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new user of ArcGIS and GIS data.&amp;nbsp; I currently have a project where we are using light data and as a starting point we are replicating the paper by Henderson et al. In their paper, they calculate the area weighted average of light data using the AML code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* area-weighted zonal stats: total digital number*area&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ular%grd%t = zonalstats(ctryliggrid,l%grd%nm * gluareag,sum,DATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where l%grd%nm&amp;nbsp; are rasters with the light data and gluareag is an ascii file with area of grid cell in square km&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They later divide by the country area to get the area weighted average&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone explain why l%grd%nm * gluareag creates the weighted sum at the grid level&amp;nbsp; to be used in the Zonal &lt;BR /&gt;Statistics?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have a shapefile of Africa at the first administrative level, when I calculate the zonal statistics i get statistics at that level but i would also like to have it at the country level.The shapefile contains country as an attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/area-weighted-average-for-light-data/m-p/568447#M1832</guid>
      <dc:creator>Jean_PhilippeWan</dc:creator>
      <dc:date>2016-11-11T16:37:11Z</dc:date>
    </item>
  </channel>
</rss>

