<?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: Kernel Density and map algebra to convert square degrees to km^2 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/kernel-density-and-map-algebra-to-convert-square/m-p/1688753#M75140</link>
    <description>&lt;P&gt;Not too familiar with the kernel functions, but if you &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/project-raster.htm" target="_self"&gt;project&lt;/A&gt; your raster into a coordinate system that uses meters that should make it easier to get square kilometers out. I'd go with an equal-area system appropriate for your study area that has the same datum as your current raster to avoid datum translations.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2026 19:24:12 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2026-03-05T19:24:12Z</dc:date>
    <item>
      <title>Kernel Density and map algebra to convert square degrees to km^2</title>
      <link>https://community.esri.com/t5/python-questions/kernel-density-and-map-algebra-to-convert-square/m-p/1688724#M75139</link>
      <description>&lt;P&gt;Normally I'd ask my professor this question but I haven't heard back from it, so I'm sending it out to the community for help.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;whaleKernelDens = KernelDensity("whales", "n_whales")&lt;/LI-CODE&gt;&lt;P&gt;This returns values from my data, ranging from 0.001-53,115.309. The value units are in square degrees. Converting it to km2, I did the following (assuming my latitude is 38 degrees North &amp;amp; 1 degree of latitude is 111km):&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cos(38 deg N) = .788&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;111 km x .788 =&amp;nbsp;87.468 km (1 degree of longitude)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;87.468 km squared =&amp;nbsp;7650.651024 km2 is in one square degree of area&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope I got my math right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I make my out_raster (which I will call&amp;nbsp;whaleDensKm2) and make an expression that display my results in km2, not square degrees. Am I using KernelDensity() for this? I'm trying to put together something but I get errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;whaleDensKm2 = KernelDensity("whales", "n_whales", "SQUARE_KILOMETERS")&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;I have my in point features, I have my population field, I want the results in square kilometers... am I missing something?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 18:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/kernel-density-and-map-algebra-to-convert-square/m-p/1688724#M75139</guid>
      <dc:creator>MattFondacaro</dc:creator>
      <dc:date>2026-03-05T18:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Density and map algebra to convert square degrees to km^2</title>
      <link>https://community.esri.com/t5/python-questions/kernel-density-and-map-algebra-to-convert-square/m-p/1688753#M75140</link>
      <description>&lt;P&gt;Not too familiar with the kernel functions, but if you &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/project-raster.htm" target="_self"&gt;project&lt;/A&gt; your raster into a coordinate system that uses meters that should make it easier to get square kilometers out. I'd go with an equal-area system appropriate for your study area that has the same datum as your current raster to avoid datum translations.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 19:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/kernel-density-and-map-algebra-to-convert-square/m-p/1688753#M75140</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2026-03-05T19:24:12Z</dc:date>
    </item>
  </channel>
</rss>

