Skip to content

Commit

Permalink
Deploy commit: ch06 corrections - Querying and setting CRS d1fb45b
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldorman committed Oct 7, 2023
1 parent db0ff1e commit 5d87d19
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 127 deletions.
250 changes: 125 additions & 125 deletions 01-spatial-data.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions 03-spatial-operations.html
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ <h3 data-number="3.4.1" class="anchored" data-anchor-id="sec-spatial-subsetting-
<div class="cell" data-execution_count="60">
<div class="sourceCode cell-code" id="cb70"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb70-1"><a href="#cb70-1" aria-hidden="true" tabindex="-1"></a>src_elev.sample([(<span class="fl">0.1</span>, <span class="fl">0.1</span>)])</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="59">
<pre><code>&lt;generator object sample_gen at 0x7fee582fd4e0&gt;</code></pre>
<pre><code>&lt;generator object sample_gen at 0x7eff5e0bd4e0&gt;</code></pre>
</div>
</div>
<p>In case we want all values at once, we can apply <code>list</code>. Since there was just one point, the result is just one extracted value, in this case <code>16</code>:</p>
Expand Down Expand Up @@ -2737,7 +2737,7 @@ <h3 data-number="3.4.4" class="anchored" data-anchor-id="sec-focal-operations"><
<span id="cb107-8"><a href="#cb107-8" aria-hidden="true" tabindex="-1"></a>grain_mode[[<span class="dv">0</span>, <span class="op">-</span><span class="dv">1</span>], :] <span class="op">=</span> np.nan</span>
<span id="cb107-9"><a href="#cb107-9" aria-hidden="true" tabindex="-1"></a>grain_mode</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>/tmp/ipykernel_254/45878578.py:3: FutureWarning: Unlike other reduction functions (e.g. `skew`, `kurtosis`), the default behavior of `mode` typically preserves the axis it acts along. In SciPy 1.11.0, this behavior will change: the default value of `keepdims` will become False, the `axis` over which the statistic is taken will be eliminated, and the value None will no longer be accepted. Set `keepdims` to True or False to avoid this warning.
<pre><code>/tmp/ipykernel_256/45878578.py:3: FutureWarning: Unlike other reduction functions (e.g. `skew`, `kurtosis`), the default behavior of `mode` typically preserves the axis it acts along. In SciPy 1.11.0, this behavior will change: the default value of `keepdims` will become False, the `axis` over which the statistic is taken will be eliminated, and the value None will no longer be accepted. Set `keepdims` to True or False to avoid this warning.
lambda x: scipy.stats.mode(x.flatten())[0],</code></pre>
</div>
<div class="cell-output cell-output-display" data-execution_count="82">
Expand Down

0 comments on commit 5d87d19

Please sign in to comment.