You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with the file path of the CUDA driver shared library.
523
+
:
524
+
525
+
526
+
Not patching Numba
527
+
warnings.warn(msg, UserWarning)
528
+
/usr/local/lib/python3.11/dist-packages/cudf/utils/gpu_utils.py:62: UserWarning: Failed to dlopen libcuda.so.1
529
+
warnings.warn(str(e))
530
+
</pre></div>
531
+
</div>
532
+
</div>
504
533
</div>
505
534
<divclass="cell docutils container">
506
535
<divclass="cell_input docutils container">
@@ -613,7 +642,7 @@ <h2>Procedure<a class="headerlink" href="#procedure" title="Link to this heading
613
642
<li><p><strong>Growth</strong>: Small Positive Change between 100 to 1000.</p></li>
614
643
<li><p><strong>High Growth</strong>: Large Positive Change greater than 1000.</p></li>
615
644
</ul>
616
-
<p>We use XArray Spatial’s <aclass="reference external" href="https://xarray-spatial.org/reference/_autosummary/xrspatial.classify.reclassify.html"><codeclass="docutils literal notranslate"><spanclass="pre">reclassify()</span></code></a> method to perform the reclassification from continuous values to 4 discrete classes.</p>
645
+
<p>We use XArray Spatial’s <aclass="reference external" href="https://xarray-spatial.readthedocs.io/en/stable/reference/_autosummary/xrspatial.classify.reclassify.html"><codeclass="docutils literal notranslate"><spanclass="pre">reclassify()</span></code></a> method to perform the reclassification from continuous values to 4 discrete classes.</p>
@@ -624,20 +653,31 @@ <h2>Procedure<a class="headerlink" href="#procedure" title="Link to this heading
624
653
</div>
625
654
</div>
626
655
</div>
627
-
<p>The result is a 2D array of reclassified values. We can visualize it the same way as before. The <codeclass="docutils literal notranslate"><spanclass="pre">imshow</span></code> method supports only a colorbar legend which is not appropriate for a discrete classified raster such as ours. We use Matplotlib’s <aclass="reference external" href="https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html"><codeclass="docutils literal notranslate"><spanclass="pre">Patch()</span></code></a> method to create a patch with appropriate labels and colors as described in Matplotlib’s <aclass="reference external" href="https://matplotlib.org/stable/tutorials/intermediate/legend_guide.html">Legend guide</a>.</p>
656
+
<p>The result is a 2D array of reclassified values. We can visualize it the same way as before.</p>
657
+
<p>Since we have discrete pixel values, we can assign a specific color to each class using the <codeclass="docutils literal notranslate"><spanclass="pre">levels</span></code> parameter. The <codeclass="docutils literal notranslate"><spanclass="pre">levels</span></code> list defines the boundary of each interval and the <codeclass="docutils literal notranslate"><spanclass="pre">colors</span></code> list defines the colors assigned to each interval.</p>
658
+
<ulclass="simple">
659
+
<li><p>Interval 1: Values between 1 and 2 (Decline)</p></li>
660
+
<li><p>Interval 2: Values between 2 and 3 (Neutral)</p></li>
661
+
<li><p>Interval 3: Values between 3 and 4 (Growth)</p></li>
662
+
<li><p>Interval 4: Values between 4 and 5 (High Growth)</p></li>
663
+
</ul>
664
+
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">imshow</span></code> method supports only a colorbar legend which is not appropriate for a discrete classified raster such as ours. We use Matplotlib’s <aclass="reference external" href="https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html"><codeclass="docutils literal notranslate"><spanclass="pre">Patch()</span></code></a> method to create a patch with appropriate labels and colors as described in Matplotlib’s <aclass="reference external" href="https://matplotlib.org/stable/tutorials/intermediate/legend_guide.html">Legend guide</a>.</p>
0 commit comments