Skip to content

Commit 899b254

Browse files
committed
Built site for gh-pages
1 parent 32ce46a commit 899b254

762 files changed

Lines changed: 12692 additions & 6754 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dba3a425
1+
8cdf5913

Interoperability.html

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
<script src="site_libs/quarto-search/fuse.min.js"></script>
6666
<script src="site_libs/quarto-search/quarto-search.js"></script>
6767
<meta name="quarto:offset" content="./">
68+
<link href="./assets/GMTjl_logo.png" rel="icon" type="image/png">
6869
<script src="site_libs/quarto-html/quarto.js" type="module"></script>
6970
<script src="site_libs/quarto-html/tabsets/tabsets.js" type="module"></script>
7071
<script src="site_libs/quarto-html/axe/axe-check.js" type="module"></script>
@@ -468,20 +469,36 @@ <h3 class="anchored" data-anchor-id="dataframes">DataFrames</h3>
468469
<ul>
469470
<li>Create and plot a DataFrame</li>
470471
</ul>
471-
<div id="f81196ec" class="cell" data-execution_count="1">
472+
<div id="d8784d4d" class="cell" data-execution_count="1">
472473
<div class="code-copy-outer-scaffold"><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">GMT</span>, <span class="bu">DataFrames</span></span>
473474
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>df <span class="op">=</span> <span class="fu">DataFrame</span>(t <span class="op">=</span> <span class="fl">1</span><span class="op">:</span><span class="fl">10</span>, series1 <span class="op">=</span> <span class="fu">sin</span>.(<span class="fl">1</span><span class="op">:</span><span class="fl">10</span>), series2<span class="op">=</span><span class="fu">rand</span>(<span class="fl">10</span>));</span>
474475
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">plot</span>(df, show<span class="op">=</span><span class="cn">true</span>)</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
476+
<div class="cell-output cell-output-stderr">
477+
<div class="ansi-escaped-output">
478+
<pre><span class="ansi-green-fg ansi-bold">Precompiling</span> packages...
479+
480+
481+
50861.8 ms<span class="ansi-green-fg"></span>GMT
482+
483+
1 dependency successfully precompiled in 52 seconds. 80 already precompiled.
484+
485+
486+
<span class="ansi-cyan-fg ansi-bold">[ </span><span class="ansi-cyan-fg ansi-bold">Info: </span>Precompiling GMTParkerFFTExt [35a23bc9-6f20-5cbc-8971-9cdf66427582]
487+
488+
<span class="ansi-cyan-fg ansi-bold">[ </span><span class="ansi-cyan-fg ansi-bold">Info: </span>Precompiling GMTDataFramesExt [b0121151-b40e-578b-8798-214dacfa5da6]
489+
</pre>
490+
</div>
491+
</div>
475492
<div class="cell-output cell-output-display">
476493
<div>
477494
<figure class="figure">
478-
<p><img src="Interoperability_files/figure-html/cell-2-output-1.png" class="img-fluid figure-img"></p>
495+
<p><img src="Interoperability_files/figure-html/cell-2-output-2.png" class="img-fluid figure-img"></p>
479496
</figure>
480497
</div>
481498
</div>
482499
</div>
483500
<p>But one problem with the above solution is that although the <code>df</code> has three columns it only plotted a single curve. This happens because in GMT 3rd and on columns may be used to control color, symbol sizes etc and cannot therefore be assumed to <em>plotting data</em> by default. If we want that all columns are interpreted as data, we use the <code>multicol</code> option, like:</p>
484-
<div id="9d9dcd0d" class="cell" data-execution_count="2">
501+
<div id="c633fed1" class="cell" data-execution_count="2">
485502
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="im">using</span> <span class="bu">GMT</span>, <span class="bu">DataFrames</span></span>
486503
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a></span>
487504
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>df <span class="op">=</span> <span class="fu">DataFrame</span>(t <span class="op">=</span> <span class="fl">1</span><span class="op">:</span><span class="fl">10</span>, series1 <span class="op">=</span> <span class="fu">sin</span>.(<span class="fl">1</span><span class="op">:</span><span class="fl">10</span>), series2<span class="op">=</span><span class="fu">rand</span>(<span class="fl">10</span>));</span>
@@ -576,7 +593,7 @@ <h3 class="anchored" data-anchor-id="rasters">Rasters</h3>
576593
<span id="cb8-5"><a href="#cb8-5" aria-hidden="true" tabindex="-1"></a>A <span class="op">=</span> <span class="fu">Raster</span>(WorldClim{BioClim}, <span class="fl">5</span>);</span>
577594
<span id="cb8-6"><a href="#cb8-6" aria-hidden="true" tabindex="-1"></a><span class="fu">viz</span>(A, colorbar<span class="op">=</span><span class="cn">true</span>)</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
578595
<p><img src=".\assets/world_clim_bio_clim.png" class="center img-fluid" style="width:80.0%"></p>
579-
<div id="2aa2cfb5" class="cell" data-execution_count="3">
596+
<div id="22825373" class="cell" data-execution_count="3">
580597
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb9"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="im">using</span> <span class="bu">GMT</span>, <span class="bu">Rasters</span></span>
581598
<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> <span class="bu">NCDatasets</span></span>
582599
<span id="cb9-3"><a href="#cb9-3" aria-hidden="true" tabindex="-1"></a></span>
@@ -592,7 +609,7 @@ <h3 class="anchored" data-anchor-id="rasters">Rasters</h3>
592609
</div>
593610
</div>
594611
</div>
595-
<div id="b2d56fc5" class="cell" data-execution_count="4">
612+
<div id="b9fe416e" class="cell" data-execution_count="4">
596613
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb10"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a>url <span class="op">=</span> <span class="st">"https://archive.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc"</span>;</span>
597614
<span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a>filename <span class="op">=</span> <span class="fu">download</span>(url, <span class="st">"tos_O1_2001-2002.nc"</span>);</span>
598615
<span id="cb10-3"><a href="#cb10-3" aria-hidden="true" tabindex="-1"></a>A <span class="op">=</span> <span class="fu">Raster</span>(filename);</span>
@@ -606,7 +623,7 @@ <h3 class="anchored" data-anchor-id="rasters">Rasters</h3>
606623
</div>
607624
</div>
608625
<p>But <em>I Don’t like Kelvins</em>. Fine, want centigrade? Just offset the <em>z</em> values.</p>
609-
<div id="65ede19e" class="cell" data-execution_count="5">
626+
<div id="0b0abec5" class="cell" data-execution_count="5">
610627
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb11"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a>url <span class="op">=</span> <span class="st">"https://archive.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc"</span>;</span>
611628
<span id="cb11-2"><a href="#cb11-2" aria-hidden="true" tabindex="-1"></a>filename <span class="op">=</span> <span class="fu">download</span>(url, <span class="st">"tos_O1_2001-2002.nc"</span>);</span>
612629
<span id="cb11-3"><a href="#cb11-3" aria-hidden="true" tabindex="-1"></a>A <span class="op">=</span> <span class="fu">Raster</span>(filename);</span>
-44.2 KB
Binary file not shown.
-7.15 KB
-350 KB
Binary file not shown.
-30.4 KB
Binary file not shown.
-15.7 KB
Binary file not shown.
-15 KB
Binary file not shown.
-21.3 KB
Binary file not shown.
-16.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)