DRTP/README.html

194 lines
6.9 KiB
HTML
Raw Permalink Normal View History

2024-09-12 18:48:58 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>&#x53d8;&#x78c1;&#x5316;&#x53c2;&#x6570;&#x5316;&#x6781;&#xff08;DRTP&#xff09;</title>
<style>
/* From extension vscode.github */
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.vscode-dark img[src$=\#gh-light-mode-only],
.vscode-light img[src$=\#gh-dark-mode-only],
.vscode-high-contrast:not(.vscode-high-contrast-light) img[src$=\#gh-light-mode-only],
.vscode-high-contrast-light img[src$=\#gh-dark-mode-only] {
display: none;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/markdown.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/highlight.css">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
font-size: 14px;
line-height: 1.6;
}
</style>
<style>
.task-list-item {
list-style-type: none;
}
.task-list-item-checkbox {
margin-left: -20px;
vertical-align: middle;
pointer-events: none;
}
</style>
<style>
:root {
--color-note: #0969da;
--color-tip: #1a7f37;
--color-warning: #9a6700;
--color-severe: #bc4c00;
--color-caution: #d1242f;
--color-important: #8250df;
}
</style>
<style>
@media (prefers-color-scheme: dark) {
:root {
--color-note: #2f81f7;
--color-tip: #3fb950;
--color-warning: #d29922;
--color-severe: #db6d28;
--color-caution: #f85149;
--color-important: #a371f7;
}
}
</style>
<style>
.markdown-alert {
padding: 0.5rem 1rem;
margin-bottom: 16px;
color: inherit;
border-left: .25em solid #888;
}
.markdown-alert>:first-child {
margin-top: 0
}
.markdown-alert>:last-child {
margin-bottom: 0
}
.markdown-alert .markdown-alert-title {
display: flex;
font-weight: 500;
align-items: center;
line-height: 1
}
.markdown-alert .markdown-alert-title .octicon {
margin-right: 0.5rem;
display: inline-block;
overflow: visible !important;
vertical-align: text-bottom;
fill: currentColor;
}
.markdown-alert.markdown-alert-note {
border-left-color: var(--color-note);
}
.markdown-alert.markdown-alert-note .markdown-alert-title {
color: var(--color-note);
}
.markdown-alert.markdown-alert-important {
border-left-color: var(--color-important);
}
.markdown-alert.markdown-alert-important .markdown-alert-title {
color: var(--color-important);
}
.markdown-alert.markdown-alert-warning {
border-left-color: var(--color-warning);
}
.markdown-alert.markdown-alert-warning .markdown-alert-title {
color: var(--color-warning);
}
.markdown-alert.markdown-alert-tip {
border-left-color: var(--color-tip);
}
.markdown-alert.markdown-alert-tip .markdown-alert-title {
color: var(--color-tip);
}
.markdown-alert.markdown-alert-caution {
border-left-color: var(--color-caution);
}
.markdown-alert.markdown-alert-caution .markdown-alert-title {
color: var(--color-caution);
}
</style>
</head>
<body class="vscode-body vscode-light">
<h3 id="变磁化参数化极drtp">变磁化参数化极DRTP</h3>
<h4 id="简介">简介</h4>
<p>drtp程序可计算变磁化参数磁偏角与磁倾角的化极磁异常适用于大陆磁异常数据的化极处理。程序可计算或读入标准IGRF程序生成的主磁场参数并计算相应的化极磁异常。程序适用于网格化的总场磁异常数据的处理网格文件的格式为netCDF格式。</p>
<h4 id="程序用法">程序用法</h4>
<p>如下所示drtp程序可通过命令行调用参数为配置文件的名称包含路径</p>
<pre><code class="language-cxx">./drtp &lt;config-file&gt;
</code></pre>
<p>配置文件为普通文本文件,注释行以<code>#</code>号开始。文件中每一行包含一条选项配置,格式为:</p>
<pre><code class="language-shell">&lt;key&gt; = &lt;value&gt;
</code></pre>
<h5 id="选项列表">选项列表</h5>
<p>如下为程序可识别的选项键值与相应的选项格式:</p>
<pre><code class="language-shell"><span class="hljs-meta prompt_"># </span><span class="language-bash">Directory to the netcdf file of the deltaT anomalies</span>
input-grid = &lt;file&gt;
<span class="hljs-meta prompt_"># </span><span class="language-bash">Directory to the output netcdf file</span>
output-grid = &lt;file&gt;
<span class="hljs-meta prompt_"># </span><span class="language-bash">Names of data attribute of the netcdf file. The default is x,y,z.</span>
grid-para = &lt;x-axis&gt;,&lt;y-axis&gt;,&lt;data&gt;
<span class="hljs-meta prompt_"># </span><span class="language-bash">Directory to the executable of the geomag.exe program</span>
geomag-exe = &lt;exe&gt;
<span class="hljs-meta prompt_"># </span><span class="language-bash">Parameters needed by the geomag.exe program</span>
geomag-para = &lt;para&gt;
<span class="hljs-meta prompt_"># </span><span class="language-bash">Directory to the output file of the geomag.exe program</span>
geomag-output = &lt;file&gt;
<span class="hljs-meta prompt_"># </span><span class="language-bash">Directory to the IGRF model file</span>
IGRF = &lt;file&gt;
<span class="hljs-meta prompt_"># </span><span class="language-bash">Call the geomag.exe program to calculate the geomagnetic parameters</span>
call-geomag = yes|no
<span class="hljs-meta prompt_"># </span><span class="language-bash">Use a <span class="hljs-built_in">set</span> of mean geomagnetic parameters defined by the user. Use this option to run a non-differential RTP process.</span>
mean-geomag = &lt;inc&gt;/&lt;dec&gt;
<span class="hljs-meta prompt_"># </span><span class="language-bash">Differential orders of the taylor series. Must be between 1 and 5. The default order is 2.</span>
taylor-order = &lt;order&gt;
</code></pre>
<p>不同计算流程所需的选项如下:</p>
<ol>
<li>非变参数化极(普通化极)</li>
</ol>
<pre><code class="language-shell">input-grid mean-geomag output-grid(optional) grid-para(optional)
</code></pre>
<ol start="2">
<li>变参数化极无IGRF参数文件</li>
</ol>
<pre><code class="language-shell">input-grid output-grid(optional) geomag-exe geomag-para geomag-output IGRF call-geomag(yes) taylor-order(optional) grid-para(optional)
</code></pre>
<ol start="3">
<li>变参数化极有IGRF参数文件</li>
</ol>
<pre><code class="language-shell">input-grid output-grid(optional) geomag-output call-geomag(no) taylor-order(optional) grid-para(optional)
</code></pre>
</body>
</html>