Sink results in very different demarkations depending on the resampling of the raster data. Could someone explain why? I don't understand this?
In the attached images you could see the differences. I use elevation data with a resolution of 5 meters. Sink06m ... is in my opinion better because nearly all lakes are demarked as sinks. Sink06m is resampled to a cellsize of 6m biliniear. Sink10m is resampled to a cellsize 10 meters, but the results are totally different?
Am I doing something wrong?
This is how I calculated the areas:
<SPAN class="keyword token">import</SPAN> arcpy<SPAN class="punctuation token">,</SPAN> os
<SPAN class="keyword token">from</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>sa <SPAN class="keyword token">import</SPAN> <SPAN class="operator token">*</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>env<SPAN class="punctuation token">.</SPAN>overwriteOutput <SPAN class="operator token">=</SPAN> <SPAN class="token boolean">True</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>env<SPAN class="punctuation token">.</SPAN>workspace <SPAN class="operator token">=</SPAN> r<SPAN class="string token">"MyPath\DGM.gdb"</SPAN>
<SPAN class="comment token"># Local variables:</SPAN>
DGM005_tif <SPAN class="operator token">=</SPAN> r<SPAN class="string token">"MyPath\DGM005_3.tif"</SPAN>
Fill_tif1 <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Fill_1"</SPAN>
resample <SPAN class="operator token">=</SPAN> <SPAN class="string token">"resample"</SPAN>
FlowDir_Fill2 <SPAN class="operator token">=</SPAN> <SPAN class="string token">"FlowDir_1"</SPAN>
Sink_FlowDir1 <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Sink_FlowDir1"</SPAN>
absenkung <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Absenkung"</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>CheckOutExtension<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Spatial"</SPAN><SPAN class="punctuation token">)</SPAN>
outCon2 <SPAN class="operator token">=</SPAN> Con<SPAN class="punctuation token">(</SPAN>Raster<SPAN class="punctuation token">(</SPAN>DGM005_tif<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">></SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> DGM005_tif<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Process: Füllung</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>gp<SPAN class="punctuation token">.</SPAN>Fill_sa<SPAN class="punctuation token">(</SPAN>outCon2<SPAN class="punctuation token">,</SPAN> Fill_tif1<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"fill"</SPAN><SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>Resample_management<SPAN class="punctuation token">(</SPAN>Fill_tif1<SPAN class="punctuation token">,</SPAN> resample<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"8"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"BILINEAR"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"resample"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Process: Fließrichtung</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>gp<SPAN class="punctuation token">.</SPAN>FlowDirection_sa<SPAN class="punctuation token">(</SPAN>resample<SPAN class="punctuation token">,</SPAN> FlowDir_Fill2<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"NORMAL"</SPAN><SPAN class="punctuation token">,</SPAN> absenkung<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"flowdir"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Process: Senke</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>gp<SPAN class="punctuation token">.</SPAN>Sink_sa<SPAN class="punctuation token">(</SPAN>FlowDir_Fill2<SPAN class="punctuation token">,</SPAN> Sink_FlowDir1<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"sink"</SPAN><SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>RasterToPolygon_conversion<SPAN class="punctuation token">(</SPAN>Sink_FlowDir1<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"{}{}"</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Senke08mfill"</SPAN><SPAN class="punctuation token">,</SPAN> os<SPAN class="punctuation token">.</SPAN>path<SPAN class="punctuation token">.</SPAN>basename<SPAN class="punctuation token">(</SPAN>os<SPAN class="punctuation token">.</SPAN>path<SPAN class="punctuation token">.</SPAN>splitext<SPAN class="punctuation token">(</SPAN>DGM005_tif<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"SIMPLIFY"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"VALUE"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Done"</SPAN><SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>CheckInExtension<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Spatial"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>