Skip to content

Commit d9cf038

Browse files
committed
Built site for gh-pages
1 parent b574088 commit d9cf038

14 files changed

Lines changed: 1238 additions & 95 deletions

File tree

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8e4804d3
1+
569537fa

documentation/alphabetical.html

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,130 +1495,134 @@ <h2 class="anchored" data-anchor-id="i">I</h2>
14951495
<td>Modules</td>
14961496
</tr>
14971497
<tr class="odd">
1498+
<td><a href="utilities/img2grid.html"><code>img2grid</code></a></td>
1499+
<td>Utilities</td>
1500+
</tr>
1501+
<tr class="even">
14981502
<td><a href="imgproc/imhdome.html"><code>imhdome</code></a></td>
14991503
<td>Image Processing</td>
15001504
</tr>
1501-
<tr class="even">
1505+
<tr class="odd">
15021506
<td><a href="imgproc/imhmax.html"><code>imhmax</code></a></td>
15031507
<td>Image Processing</td>
15041508
</tr>
1505-
<tr class="odd">
1509+
<tr class="even">
15061510
<td><a href="imgproc/imhmin.html"><code>imhmin</code></a></td>
15071511
<td>Image Processing</td>
15081512
</tr>
1509-
<tr class="even">
1513+
<tr class="odd">
15101514
<td><a href="imgproc/immorphgrad.html"><code>immorphgrad</code></a></td>
15111515
<td>Image Processing</td>
15121516
</tr>
1513-
<tr class="odd">
1517+
<tr class="even">
15141518
<td><a href="imgproc/imopen.html"><code>imopen</code></a></td>
15151519
<td>Image Processing</td>
15161520
</tr>
1517-
<tr class="even">
1521+
<tr class="odd">
15181522
<td><a href="gdalfuns/importEPSG.html"><code>importEPSG</code></a></td>
15191523
<td>GDAL Functions</td>
15201524
</tr>
1521-
<tr class="odd">
1525+
<tr class="even">
15221526
<td><a href="gdalfuns/importPROJ4.html"><code>importPROJ4</code></a></td>
15231527
<td>GDAL Functions</td>
15241528
</tr>
1525-
<tr class="even">
1529+
<tr class="odd">
15261530
<td><a href="gdalfuns/importWKT.html"><code>importWKT</code></a></td>
15271531
<td>GDAL Functions</td>
15281532
</tr>
1529-
<tr class="odd">
1533+
<tr class="even">
15301534
<td><a href="imgproc/imrankfilter.html"><code>imrankfilter</code></a></td>
15311535
<td>Image Processing</td>
15321536
</tr>
1533-
<tr class="even">
1537+
<tr class="odd">
15341538
<td><a href="imgproc/imreconstruct.html"><code>imreconstruct</code></a></td>
15351539
<td>Image Processing</td>
15361540
</tr>
1537-
<tr class="odd">
1541+
<tr class="even">
15381542
<td><a href="imgproc/imregionalmax.html"><code>imregionalmax</code></a></td>
15391543
<td>Image Processing</td>
15401544
</tr>
1541-
<tr class="even">
1545+
<tr class="odd">
15421546
<td><a href="imgproc/imregionalmin.html"><code>imregionalmin</code></a></td>
15431547
<td>Image Processing</td>
15441548
</tr>
1545-
<tr class="odd">
1549+
<tr class="even">
15461550
<td><a href="imgproc/imresize.html"><code>imresize</code></a></td>
15471551
<td>Image Processing</td>
15481552
</tr>
1549-
<tr class="even">
1553+
<tr class="odd">
15501554
<td><a href="imgproc/imsegment.html"><code>imsegment</code></a></td>
15511555
<td>Image Processing</td>
15521556
</tr>
1553-
<tr class="odd">
1557+
<tr class="even">
15541558
<td><a href="utilities/imshow.html"><code>imshow</code></a></td>
15551559
<td>Utilities</td>
15561560
</tr>
1557-
<tr class="even">
1561+
<tr class="odd">
15581562
<td><a href="imgproc/imsobel.html"><code>imsobel</code></a></td>
15591563
<td>Image Processing</td>
15601564
</tr>
1561-
<tr class="odd">
1565+
<tr class="even">
15621566
<td><a href="imgproc/imtophat.html"><code>imtophat</code></a></td>
15631567
<td>Image Processing</td>
15641568
</tr>
1565-
<tr class="even">
1569+
<tr class="odd">
15661570
<td><a href="gdalfuns/inbbox.html"><code>inbbox</code></a></td>
15671571
<td>GDAL Functions</td>
15681572
</tr>
1569-
<tr class="odd">
1573+
<tr class="even">
15701574
<td><a href="utilities/ind2bool.html"><code>ind2bool</code></a></td>
15711575
<td>Utilities</td>
15721576
</tr>
1573-
<tr class="even">
1577+
<tr class="odd">
15741578
<td><a href="utilities/ind2rgb.html"><code>ind2rgb</code></a></td>
15751579
<td>Utilities</td>
15761580
</tr>
1577-
<tr class="odd">
1581+
<tr class="even">
15781582
<td><a href="utilities/info.html"><code>info</code></a></td>
15791583
<td>Utilities</td>
15801584
</tr>
1581-
<tr class="even">
1585+
<tr class="odd">
15821586
<td><a href="utilities/inpolygon.html"><code>inpolygon</code></a></td>
15831587
<td>Utilities</td>
15841588
</tr>
1585-
<tr class="odd">
1589+
<tr class="even">
15861590
<td><a href="modules/inset.html"><code>inset</code></a></td>
15871591
<td>Modules</td>
15881592
</tr>
1589-
<tr class="even">
1593+
<tr class="odd">
15901594
<td><a href="gdalfuns/intersection.html"><code>intersection</code></a></td>
15911595
<td>GDAL Functions</td>
15921596
</tr>
1593-
<tr class="odd">
1597+
<tr class="even">
15941598
<td><a href="gdalfuns/intersects.html"><code>intersects</code></a></td>
15951599
<td>GDAL Functions</td>
15961600
</tr>
1597-
<tr class="even">
1601+
<tr class="odd">
15981602
<td><a href="gdalfuns/invgeod.html"><code>invgeod</code></a></td>
15991603
<td>GDAL Functions</td>
16001604
</tr>
1601-
<tr class="odd">
1605+
<tr class="even">
16021606
<td><a href="utilities/inwhichpolygon.html"><code>inwhichpolygon</code></a></td>
16031607
<td>Utilities</td>
16041608
</tr>
1605-
<tr class="even">
1609+
<tr class="odd">
16061610
<td><a href="utilities/isclockwise.html"><code>isclockwise</code></a></td>
16071611
<td>Utilities</td>
16081612
</tr>
1609-
<tr class="odd">
1613+
<tr class="even">
16101614
<td><a href="utilities/isnodata.html"><code>isnodata</code></a></td>
16111615
<td>Utilities</td>
16121616
</tr>
1613-
<tr class="even">
1617+
<tr class="odd">
16141618
<td><a href="imgproc/isodata.html"><code>isodata</code></a></td>
16151619
<td>Image Processing</td>
16161620
</tr>
1617-
<tr class="odd">
1621+
<tr class="even">
16181622
<td><a href="utilities/ISOtime2unix.html"><code>ISOtime2unix</code></a></td>
16191623
<td>Utilities</td>
16201624
</tr>
1621-
<tr class="even">
1625+
<tr class="odd">
16221626
<td><a href="utilities/isoutlier.html"><code>isoutlier</code></a></td>
16231627
<td>Utilities</td>
16241628
</tr>

documentation/gdalfuns/gd2gmt.html

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,41 @@
2020
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
2121
vertical-align: middle;
2222
}
23+
/* CSS for syntax highlighting */
24+
html { -webkit-text-size-adjust: 100%; }
25+
pre > code.sourceCode { white-space: pre; position: relative; }
26+
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
27+
pre > code.sourceCode > span:empty { height: 1.2em; }
28+
.sourceCode { overflow: visible; }
29+
code.sourceCode > span { color: inherit; text-decoration: inherit; }
30+
div.sourceCode { margin: 1em 0; }
31+
pre.sourceCode { margin: 0; }
32+
@media screen {
33+
div.sourceCode { overflow: auto; }
34+
}
35+
@media print {
36+
pre > code.sourceCode { white-space: pre-wrap; }
37+
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
38+
}
39+
pre.numberSource code
40+
{ counter-reset: source-line 0; }
41+
pre.numberSource code > span
42+
{ position: relative; left: -4em; counter-increment: source-line; }
43+
pre.numberSource code > span > a:first-child::before
44+
{ content: counter(source-line);
45+
position: relative; left: -1em; text-align: right; vertical-align: baseline;
46+
border: none; display: inline-block;
47+
-webkit-touch-callout: none; -webkit-user-select: none;
48+
-khtml-user-select: none; -moz-user-select: none;
49+
-ms-user-select: none; user-select: none;
50+
padding: 0 4px; width: 4em;
51+
}
52+
pre.numberSource { margin-left: 3em; padding-left: 4px; }
53+
div.sourceCode
54+
{ }
55+
@media screen {
56+
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
57+
}
2358
</style>
2459

2560

@@ -402,6 +437,7 @@ <h2 id="toc-title">On this page</h2>
402437

403438
<ul class="collapse">
404439
<li><a href="#source-code" id="toc-source-code" class="nav-link active" data-scroll-target="#source-code">Source Code</a></li>
440+
<li><a href="#see-also" id="toc-see-also" class="nav-link" data-scroll-target="#see-also">See Also</a></li>
405441
</ul>
406442
</nav>
407443
</div>
@@ -432,21 +468,30 @@ <h1 class="title">gd2gmt</h1>
432468
<p>When DATASET is a string it may contain the file name or the name of a subdataset. In former case you can use the kwarg <code>sds</code> to selec the subdataset numerically. Alternatively, provide the full <code>sds</code> name. For files with <code>sds</code> with a scale_factor (e.g.&nbsp;MODIS data), that scale is applyied automaticaly.</p>
433469
<section id="examples" class="level3">
434470
<h3 class="anchored" data-anchor-id="examples">Examples:</h3>
435-
<p>G = gd2gmt(“AQUA_MODIS.20210228.L3m.DAY.NSST.sst.4km.NRT.nc”, sds=1);</p>
436-
<p>Or</p>
437-
<p>G = gd2gmt(“SUBDATASET_1_NAME=NETCDF:AQUA_MODIS.20210228.L3m.DAY.NSST.sst.4km.NRT.nc:sst”);</p>
438-
<p>Or</p>
439-
<p>G = gd2gmt(“NETCDF:AQUA_MODIS.20210228.L3m.DAY.NSST.sst.4km.NRT.nc:sst”);</p>
471+
<div class="code-copy-outer-scaffold"><div class="sourceCode" 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> G <span class="op">=</span> <span class="fu">gd2gmt</span>(<span class="st">"AQUA_MODIS.20210228.L3m.DAY.NSST.sst.4km.NRT.nc"</span>, sds<span class="op">=</span><span class="fl">1</span>);</span>
472+
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a></span>
473+
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a>Or</span>
474+
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a></span>
475+
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a> G <span class="op">=</span> <span class="fu">gd2gmt</span>(<span class="st">"SUBDATASET_1_NAME=NETCDF:AQUA_MODIS.20210228.L3m.DAY.NSST.sst.4km.NRT.nc:sst"</span>);</span>
476+
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a></span>
477+
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>Or</span>
478+
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a></span>
479+
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a> G <span class="op">=</span> <span class="fu">gd2gmt</span>(<span class="st">"NETCDF:AQUA_MODIS.20210228.L3m.DAY.NSST.sst.4km.NRT.nc:sst"</span>);</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
440480
</section>
441481
<section id="source-code" class="level2">
442482
<h2 class="anchored" data-anchor-id="source-code">Source Code</h2>
443483
<p>This function has multiple methods:</p>
444484
<ul>
445-
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L256"><code>gd2gmt(dataset::GMT.Gdal.AbstractDataset)</code></a> - gdal_utils.jl:256</li>
446-
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L216"><code>gd2gmt(geom::GMT.Gdal.AbstractGeometry)</code></a> - gdal_utils.jl:216</li>
485+
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L260"><code>gd2gmt(dataset::GMT.Gdal.AbstractDataset)</code></a> - gdal_utils.jl:260</li>
486+
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L220"><code>gd2gmt(geom::GMT.Gdal.AbstractGeometry)</code></a> - gdal_utils.jl:220</li>
447487
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L24"><code>gd2gmt(_dataset; band, bands, sds, pad, layout)</code></a> - gdal_utils.jl:24</li>
448-
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L216"><code>gd2gmt(geom::GMT.Gdal.AbstractGeometry, proj::String)</code></a> - gdal_utils.jl:216</li>
488+
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L220"><code>gd2gmt(geom::GMT.Gdal.AbstractGeometry, proj::String)</code></a> - gdal_utils.jl:220</li>
449489
</ul>
490+
</section>
491+
<section id="see-also" class="level2">
492+
<h2 class="anchored" data-anchor-id="see-also">See Also</h2>
493+
<p><a href="../..\documentation/modules/gmt2gd.html">gmt2gd</a></p>
494+
<p><a href="../alphabetical.html">Alphabetical Function List</a></p>
450495

451496

452497
</section>

documentation/gdalfuns/gmt2gd.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ <h2 id="toc-title">On this page</h2>
402402

403403
<ul class="collapse">
404404
<li><a href="#source-code" id="toc-source-code" class="nav-link active" data-scroll-target="#source-code">Source Code</a></li>
405+
<li><a href="#see-also" id="toc-see-also" class="nav-link" data-scroll-target="#see-also">See Also</a></li>
405406
</ul>
406407
</nav>
407408
</div>
@@ -435,11 +436,16 @@ <h1 class="title">gmt2gd</h1>
435436
<h2 class="anchored" data-anchor-id="source-code">Source Code</h2>
436437
<p>This function has multiple methods:</p>
437438
<ul>
438-
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L670"><code>gmt2gd(D::Vector{&lt;:GMTdataset}; save, geometry)</code></a> - gdal_utils.jl:670</li>
439-
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L669"><code>gmt2gd(D::GMTdataset; save, geometry)</code></a> - gdal_utils.jl:669</li>
440-
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L668"><code>gmt2gd(D::Matrix{&lt;:Real}; save, geometry)</code></a> - gdal_utils.jl:668</li>
441-
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L592"><code>gmt2gd(GI)</code></a> - gdal_utils.jl:592</li>
439+
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L674"><code>gmt2gd(D::Vector{&lt;:GMTdataset}; save, geometry)</code></a> - gdal_utils.jl:674</li>
440+
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L673"><code>gmt2gd(D::GMTdataset; save, geometry)</code></a> - gdal_utils.jl:673</li>
441+
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L672"><code>gmt2gd(D::Matrix{&lt;:Real}; save, geometry)</code></a> - gdal_utils.jl:672</li>
442+
<li><a href="https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L596"><code>gmt2gd(GI)</code></a> - gdal_utils.jl:596</li>
442443
</ul>
444+
</section>
445+
<section id="see-also" class="level2">
446+
<h2 class="anchored" data-anchor-id="see-also">See Also</h2>
447+
<p><a href="../..\documentation/modules/gd2gmt.html">gd2gmt</a></p>
448+
<p><a href="../alphabetical.html">Alphabetical Function List</a></p>
443449

444450

445451
</section>

documentation/modules/blockmean.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,16 @@ <h2 class="anchored" data-anchor-id="examples">Examples</h2>
538538
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">blockmean</span>(<span class="st">"@ship_15.txt"</span>, spacing<span class="op">=</span><span class="st">"10m"</span>, region<span class="op">=</span>(<span class="op">-</span><span class="fl">115</span>,<span class="op">-</span><span class="fl">105</span>,<span class="fl">20</span>,<span class="fl">30</span>), extend<span class="op">=</span><span class="cn">true</span>, save<span class="op">=</span><span class="st">"field_%s.nc"</span>, fields<span class="op">=</span><span class="st">"z,s"</span>)</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
539539
<p>The same as above but this time returns the two grids to the Julia REPL</p>
540540
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb5"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> Z,S <span class="op">=</span> <span class="fu">blockmean</span>(<span class="st">"@ship_15.txt"</span>, spacing<span class="op">=</span><span class="st">"10m"</span>, region<span class="op">=</span>(<span class="op">-</span><span class="fl">115</span>,<span class="op">-</span><span class="fl">105</span>,<span class="fl">20</span>,<span class="fl">30</span>), extend<span class="op">=</span><span class="cn">true</span>, fields<span class="op">=</span><span class="st">"z,s"</span>)</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
541+
<div class="ansi-escaped-output">
542+
<pre><span class="ansi-green-fg ansi-bold">Precompiling</span> packages...
543+
544+
59208.9 ms<span class="ansi-green-fg"></span>GMT
545+
546+
1 dependency successfully precompiled in 61 seconds. 80 already precompiled.
547+
548+
<span class="ansi-cyan-fg ansi-bold">[ </span><span class="ansi-cyan-fg ansi-bold">Info: </span>Precompiling GMTParkerFFTExt [35a23bc9-6f20-5cbc-8971-9cdf66427582]
549+
</pre>
550+
</div>
541551
</section>
542552
<section id="source-code" class="level2">
543553
<h2 class="anchored" data-anchor-id="source-code">Source Code</h2>
@@ -549,7 +559,8 @@ <h2 class="anchored" data-anchor-id="source-code">Source Code</h2>
549559
</section>
550560
<section id="see-also" class="level2">
551561
<h2 class="anchored" data-anchor-id="see-also">See Also</h2>
552-
<p><a href="../..\documentation/modules/blockmedian.html">blockmedian</a> <a href="../..\documentation/modules/blockmode.html">blockmode</a></p>
562+
<p><a href="../..\documentation/modules/blockmedian.html">blockmedian</a>, <a href="../..\documentation/modules/blockmode.html">blockmode</a></p>
563+
<p><a href="../alphabetical.html">Alphabetical Function List</a></p>
553564

554565

555566
</section>

documentation/modules/gmtbinstats.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,20 @@ <h2 class="anchored" data-anchor-id="examples">Examples</h2>
555555
<div class="code-copy-outer-scaffold"><div class="sourceCode" 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>G <span class="op">=</span> <span class="fu">gmtbinstats</span>(<span class="st">"@capitals.gmt"</span>, a<span class="op">=</span><span class="st">"2=population"</span>, region<span class="op">=:</span>global360, inc<span class="op">=</span><span class="fl">5</span>, stats<span class="op">=:</span>sum, search_radius<span class="op">=</span><span class="st">"1000k"</span>);</span>
556556
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="fu">imshow</span>(G)</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
557557
<p>Make a hexbin plot with random numbers.</p>
558-
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>xy <span class="op">=</span> <span class="fu">rand</span>(<span class="fl">100</span>,<span class="fl">2</span>) <span class="op">.*</span> [<span class="fl">5</span> <span class="fl">3</span>];</span>
559-
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>D <span class="op">=</span> <span class="fu">binstats</span>(xy, region<span class="op">=</span>(<span class="fl">0</span>,<span class="fl">5</span>,<span class="fl">0</span>,<span class="fl">3</span>), inc<span class="op">=</span><span class="fl">1</span>, tiling<span class="op">=:</span>hex, stats<span class="op">=:</span>number);</span>
560-
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="fu">imshow</span>(D, hexbin<span class="op">=</span><span class="cn">true</span>, ml<span class="op">=</span><span class="fl">0.5</span>, 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>
558+
<div id="ed9d2788" class="cell" data-execution_count="1">
559+
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="im">using</span> <span class="bu">GMT</span></span>
560+
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span>
561+
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>xy <span class="op">=</span> <span class="fu">rand</span>(<span class="fl">100</span>,<span class="fl">2</span>) <span class="op">.*</span> [<span class="fl">5</span> <span class="fl">3</span>];</span>
562+
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a>D <span class="op">=</span> <span class="fu">binstats</span>(xy, region<span class="op">=</span>(<span class="fl">0</span>,<span class="fl">5</span>,<span class="fl">0</span>,<span class="fl">3</span>), inc<span class="op">=</span><span class="fl">1</span>, tiling<span class="op">=:</span>hex, stats<span class="op">=:</span>number);</span>
563+
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a><span class="fu">imshow</span>(D, hexbin<span class="op">=</span><span class="cn">true</span>, ml<span class="op">=</span><span class="fl">0.5</span>, 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>
564+
<div class="cell-output cell-output-display">
565+
<div>
566+
<figure class="figure">
567+
<p><img src="gmtbinstats_files/figure-html/cell-2-output-1.png" class="img-fluid figure-img"></p>
568+
</figure>
569+
</div>
570+
</div>
571+
</div>
561572
</section>
562573
<section id="source-code" class="level2">
563574
<h2 class="anchored" data-anchor-id="source-code">Source Code</h2>
104 KB
Loading
92 KB
Loading

0 commit comments

Comments
 (0)