<?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 Comparing DEMs with RMSE in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/comparing-dems-with-rmse/m-p/331009#M14441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone! I am attempting to compare 5 DEMs I interpolated with different methods from a point file of elevations with another DEM that will act as the true elevation. I know I need to compute the RMSE&amp;nbsp;to compare each of my interpolated DEMs with the other DEM but I have no idea how to begin going about this in ArcMap. I am required to produce a tool in Modelbuilder to do this comparison as well. I am completely lost on how to start, so any tips would be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcMap 10.7.1. I have all my rasters projected into the same spatial reference (NAD 1983 UTM Zone 17) and they are all clipped to the same geographical extent. I have stored the 6 DEMs mentioned above in a file geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help that anyone can provide!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Feb 2020 05:42:54 GMT</pubDate>
    <dc:creator>ElsaSartor</dc:creator>
    <dc:date>2020-02-15T05:42:54Z</dc:date>
    <item>
      <title>Comparing DEMs with RMSE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/comparing-dems-with-rmse/m-p/331009#M14441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone! I am attempting to compare 5 DEMs I interpolated with different methods from a point file of elevations with another DEM that will act as the true elevation. I know I need to compute the RMSE&amp;nbsp;to compare each of my interpolated DEMs with the other DEM but I have no idea how to begin going about this in ArcMap. I am required to produce a tool in Modelbuilder to do this comparison as well. I am completely lost on how to start, so any tips would be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcMap 10.7.1. I have all my rasters projected into the same spatial reference (NAD 1983 UTM Zone 17) and they are all clipped to the same geographical extent. I have stored the 6 DEMs mentioned above in a file geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help that anyone can provide!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Feb 2020 05:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/comparing-dems-with-rmse/m-p/331009#M14441</guid>
      <dc:creator>ElsaSartor</dc:creator>
      <dc:date>2020-02-15T05:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing DEMs with RMSE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/comparing-dems-with-rmse/m-p/331010#M14442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raster calculator the difference between the true DEM and your interpolated one, square it, the run something like zonal stats as table to grab the mean, then take the root.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's some code. I've not tested it. may have to save the raster objects as interim data. let me know if it doesn't work and i'll amend the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

&lt;SPAN class="comment token"&gt;#path to your original accurate DEM - make sure path is enclosed by r' '&lt;/SPAN&gt;
original_dem &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'c:\\myproject\mygeodatabase\originalDEM'&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#change the below paths to your interpolated DEM paths &lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# - make sure path is enclosed by r' '&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#interpolated DEM 1&lt;/SPAN&gt;
interp_dem1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'c:\\myproject\mygeodatabase\interpDEM1'&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#interpolated DEM 2&lt;/SPAN&gt;
interp_dem2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'c:\\myproject\mygeodatabase\interpDEM2'&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#interpolated DEM 3&lt;/SPAN&gt;
interp_dem3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'c:\\myproject\mygeodatabase\interpDEM3'&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#interpolated DEM 4&lt;/SPAN&gt;
interp_dem4 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'c:\\myproject\mygeodatabase\interpDEM4'&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#interpolated DEM 5&lt;/SPAN&gt;
interp_dem5 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'c:\\myproject\mygeodatabase\interpDEM5'&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#make a list of the interpolated DEM paths&lt;/SPAN&gt;
interp_dem_list &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;interp_dem1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; interp_dem2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; interp_dem3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; interp_dem4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; interp_dem5&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#turn the original DEM into a raster object,&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#iterate through the list, turn paths into raster objects to perform&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#raster algebra on them, output raster cell values will be&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#(interp_dem - original_dem) ^ 2&lt;/SPAN&gt;
original_dem_rasobj &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;original_dem&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#set a counter to label result with iteration number&lt;/SPAN&gt;
iteration_counter &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; interp_dem_path &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; interp_dem_list&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    ras_object &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;interp_dem_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    ras_diff &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ras_object &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; original_dem_rasobj&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;**&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;#get the mean of this raster&lt;/SPAN&gt;
    ras_stats &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CalculateStatistics_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ras_diff&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    ras_prop &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetRasterProperties_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ras_stats&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MEAN"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    ras_mean &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ras_prop&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getOutput&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    rmse &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ras_mean&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;**&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.5&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;#print out the rmse in the python window&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"RMSE of Interpolated DEM Raster "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;iteration_counter&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" = "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;rmse&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;#add 1 to the iteration counter&lt;/SPAN&gt;
    iteration_counter &lt;SPAN class="operator token"&gt;+=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Processing Complete"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/comparing-dems-with-rmse/m-p/331010#M14442</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-12-11T15:40:42Z</dc:date>
    </item>
  </channel>
</rss>

