|
20 | 20 | margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */ |
21 | 21 | vertical-align: middle; |
22 | 22 | } |
| 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 | +} |
23 | 58 | </style> |
24 | 59 |
|
25 | 60 |
|
@@ -402,6 +437,7 @@ <h2 id="toc-title">On this page</h2> |
402 | 437 |
|
403 | 438 | <ul class="collapse"> |
404 | 439 | <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> |
405 | 441 | </ul> |
406 | 442 | </nav> |
407 | 443 | </div> |
@@ -432,21 +468,30 @@ <h1 class="title">gd2gmt</h1> |
432 | 468 | <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. MODIS data), that scale is applyied automaticaly.</p> |
433 | 469 | <section id="examples" class="level3"> |
434 | 470 | <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> |
440 | 480 | </section> |
441 | 481 | <section id="source-code" class="level2"> |
442 | 482 | <h2 class="anchored" data-anchor-id="source-code">Source Code</h2> |
443 | 483 | <p>This function has multiple methods:</p> |
444 | 484 | <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> |
447 | 487 | <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> |
449 | 489 | </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> |
450 | 495 |
|
451 | 496 |
|
452 | 497 | </section> |
|
0 commit comments