@@ -524,7 +524,7 @@ <h1 class="title"><span class="chapter-title">5. Spatial Interpolations</span></
524524
525525< section id ="load-packages " class ="level2 ">
526526< h2 class ="anchored " data-anchor-id ="load-packages "> Load packages</ h2 >
527- < div id ="057d3458 " class ="cell " data-execution_count ="1 ">
527+ < div id ="e9e603e6 " class ="cell " data-execution_count ="1 ">
528528< div class ="sourceCode cell-code " id ="cb1 "> < pre class ="sourceCode julia code-with-copy "> < code class ="sourceCode julia "> < span id ="cb1-1 "> < a href ="#cb1-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="im "> using</ span > < span class ="bu "> SpatRasters</ span > </ span >
529529< span id ="cb1-2 "> < a href ="#cb1-2 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="im "> using</ span > < span class ="bu "> MakieLayers</ span > , < span class ="bu "> CairoMakie</ span > </ span >
530530< span id ="cb1-3 "> < a href ="#cb1-3 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="im "> import</ span > < span class ="bu "> MakieLayers</ span > : imagesc, imagesc!</ span >
@@ -594,7 +594,7 @@ <h2 class="anchored" data-anchor-id="interp">Interp</h2>
594594< span id ="cb4-9 "> < a href ="#cb4-9 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="pp "> @time</ span > ra_tps1 < span class ="op "> =</ span > < span class ="fu "> interp_tps</ span > (X, Y, target; λ< span class ="op "> =</ span > < span class ="fl "> 0.01</ span > )</ span >
595595< span id ="cb4-10 "> < a href ="#cb4-10 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="pp "> @time</ span > ra_tps2 < span class ="op "> =</ span > < span class ="fu "> interp_tps</ span > (X, Y, target; λ< span class ="op "> =</ span > < span class ="fl "> 0.1</ span > )</ span >
596596< span id ="cb4-11 "> < a href ="#cb4-11 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="co "> # @profview ra_adw = interp(X, Y, target; wfun=weight_adw!)</ span > </ span > </ code > < button title ="Copy to Clipboard " class ="code-copy-button "> < i class ="bi "> </ i > </ button > </ pre > </ div >
597- < p > 1.694065 seconds (3.32 M allocations: 166.738 MiB, 2.13 % gc time, 99.67 % compilation time) 0.451829 seconds (874.32 k allocations: 38.760 MiB, 97.78 % compilation time) 5.242871 seconds (14.45 M allocations: 722.077 MiB, 4.41 % gc time, 98.70 % compilation time) 0.003794 seconds (100 allocations: 2.020 MiB)</ p >
597+ < p > 1.682991 seconds (3.32 M allocations: 166.786 MiB, 1.55 % gc time, 99.68 % compilation time) 0.435658 seconds (874.32 k allocations: 38.760 MiB, 97.71 % compilation time) 5.467251 seconds (14.45 M allocations: 722.012 MiB, 9.35 % gc time, 99.92 % compilation time) 0.003606 seconds (100 allocations: 2.020 MiB)</ p >
598598< div class ="ansi-escaped-output ">
599599< pre > < span class ="ansi-blue-fg "> SpatRaster{Float64}: </ span > < span style ="text-decoration:underline " class ="ansi-green-fg "> Raster</ span >
600600 A : Array{Float64, 3} | (20, 20, 1) | < span style ="font-weight:bold;text-decoration:underline " class ="ansi-blue-fg "> 0.0 Mb</ span >
@@ -657,14 +657,14 @@ <h3 class="anchored" data-anchor-id="adw-m如何选择">ADW <code>m</code>如何
657657< span id ="cb7-11 "> < a href ="#cb7-11 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="fu "> plot_interp</ span > (fig[i, j], ra_adw, X, Y; title< span class ="op "> =</ span > < span class ="st "> "ADW (m=</ span > < span class ="sc "> $</ span > m< span class ="st "> )"</ span > )</ span >
658658< span id ="cb7-12 "> < a href ="#cb7-12 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="cf "> end</ span > </ span >
659659< span id ="cb7-13 "> < a href ="#cb7-13 " aria-hidden ="true " tabindex ="-1 "> </ a > fig</ span > </ code > < button title ="Copy to Clipboard " class ="code-copy-button "> < i class ="bi "> </ i > </ button > </ pre > </ div >
660- < p > 0.012679 seconds (316.57 k allocations: 6.243 MiB)</ p >
660+ < p > 0.012812 seconds (316.57 k allocations: 6.243 MiB)</ p >
661661< div class ="ansi-escaped-output ">
662662< pre > < span class ="ansi-yellow-fg ansi-bold "> ┌ </ span > < span class ="ansi-yellow-fg ansi-bold "> Warning: </ span > Found `resolution` in the theme when creating a `Scene`. The `resolution` keyword for `Scene`s and `Figure`s has been deprecated. Use `Figure(; size = ...` or `Scene(; size = ...)` instead, which better reflects that this is a unitless size and not a pixel resolution. The key could also come from `set_theme!` calls or related theming functions.
663663
664664< span class ="ansi-yellow-fg ansi-bold "> └ </ span > < span class ="ansi-bright-black-fg "> @ Makie ~/.julia/packages/Makie/6zcxH/src/scenes.jl:264</ span >
665665</ pre >
666666</ div >
667- < p > 0.012852 seconds (316.83 k allocations: 6.260 MiB) 0.012697 seconds (316.57 k allocations: 6.242 MiB) 0.012759 seconds (316.57 k allocations: 6.242 MiB) < img src ="5-Interp_files/figure-html/cell-7-output-4.svg " class ="img-fluid "> </ p >
667+ < p > 0.013326 seconds (316.83 k allocations: 6.260 MiB) 0.012732 seconds (316.57 k allocations: 6.242 MiB) 0.013013 seconds (316.57 k allocations: 6.242 MiB) < img src ="5-Interp_files/figure-html/cell-7-output-4.svg " class ="img-fluid "> </ p >
668668</ section >
669669< section id ="adw-cdd如何选择 " class ="level3 ">
670670< h3 class ="anchored " data-anchor-id ="adw-cdd如何选择 "> ADW < code > cdd</ code > 如何选择?</ h3 >
0 commit comments