Skip to content

Commit

Permalink
Sync with 2024.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
serban-seeq committed Dec 9, 2024
1 parent 80fbb70 commit c842d8c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
3 changes: 2 additions & 1 deletion python/GXDU.html
Original file line number Diff line number Diff line change
Expand Up @@ -2627,7 +2627,7 @@ <h3>This Page</h3>

<dl class="py method">
<dt class="sig sig-object py" id="geosoft.gxapi.GXDU.import_aseg_proj">
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">import_aseg_proj</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">db</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">templ</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">file</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">data</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">flc</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">chans</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proj</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">x_ch</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">y_ch</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/geosoft/gxapi/GXDU.html#GXDU.import_aseg_proj"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#geosoft.gxapi.GXDU.import_aseg_proj" title="Link to this definition">¶</a></dt>
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">import_aseg_proj</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">db</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">templ</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">file</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">data</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">flc</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">chans</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proj</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">x_ch</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">y_ch</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">fiducial</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/geosoft/gxapi/GXDU.html#GXDU.import_aseg_proj"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#geosoft.gxapi.GXDU.import_aseg_proj" title="Link to this definition">¶</a></dt>
<dd><p>Import an ASEG-GDF data file (supports projections).</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
Expand All @@ -2641,6 +2641,7 @@ <h3>This Page</h3>
<li><p><strong>proj</strong> (<em>str</em>) – Projection file name</p></li>
<li><p><strong>x_ch</strong> (<em>str</em>) – Channel pair to associate projection</p></li>
<li><p><strong>y_ch</strong> (<em>str</em>) – Channel pair to associate projection</p></li>
<li><p><strong>fiducial</strong> (<em>int</em>) – Fiducial selection</p></li>
</ul>
</dd>
</dl>
Expand Down
42 changes: 22 additions & 20 deletions python/_modules/geosoft/gxapi/GXDU.html
Original file line number Diff line number Diff line change
Expand Up @@ -2609,36 +2609,38 @@ <h1>Source code for geosoft.gxapi.GXDU</h1><div class="highlight"><pre>
<div class="viewcode-block" id="GXDU.import_aseg_proj">
<a class="viewcode-back" href="../../../GXDU.html#geosoft.gxapi.GXDU.import_aseg_proj">[docs]</a>
<span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">import_aseg_proj</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">db</span><span class="p">,</span> <span class="n">templ</span><span class="p">,</span> <span class="n">file</span><span class="p">,</span> <span class="n">data</span><span class="p">,</span> <span class="n">flc</span><span class="p">,</span> <span class="n">chans</span><span class="p">,</span> <span class="n">proj</span><span class="p">,</span> <span class="n">x_ch</span><span class="p">,</span> <span class="n">y_ch</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">import_aseg_proj</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">db</span><span class="p">,</span> <span class="n">templ</span><span class="p">,</span> <span class="n">file</span><span class="p">,</span> <span class="n">data</span><span class="p">,</span> <span class="n">flc</span><span class="p">,</span> <span class="n">chans</span><span class="p">,</span> <span class="n">proj</span><span class="p">,</span> <span class="n">x_ch</span><span class="p">,</span> <span class="n">y_ch</span><span class="p">,</span> <span class="n">fiducial</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Import an ASEG-GDF data file (supports projections).</span>
<span class="sd"> </span>
<span class="sd"> :param db: Database</span>
<span class="sd"> :param templ: Template file name</span>
<span class="sd"> :param file: Header file name</span>
<span class="sd"> :param data: Data file name</span>
<span class="sd"> :param flc: Flight Line Channel name</span>
<span class="sd"> :param chans: Number of channels to import at one time</span>
<span class="sd"> :param proj: Projection file name</span>
<span class="sd"> :param x_ch: Channel pair to associate projection</span>
<span class="sd"> :param y_ch: Channel pair to associate projection</span>
<span class="sd"> :type db: GXDB</span>
<span class="sd"> :type templ: str</span>
<span class="sd"> :type file: str</span>
<span class="sd"> :type data: str</span>
<span class="sd"> :type flc: str</span>
<span class="sd"> :type chans: int</span>
<span class="sd"> :type proj: str</span>
<span class="sd"> :type x_ch: str</span>
<span class="sd"> :type y_ch: str</span>
<span class="sd"> :param db: Database</span>
<span class="sd"> :param templ: Template file name</span>
<span class="sd"> :param file: Header file name</span>
<span class="sd"> :param data: Data file name</span>
<span class="sd"> :param flc: Flight Line Channel name</span>
<span class="sd"> :param chans: Number of channels to import at one time</span>
<span class="sd"> :param proj: Projection file name</span>
<span class="sd"> :param x_ch: Channel pair to associate projection</span>
<span class="sd"> :param y_ch: Channel pair to associate projection</span>
<span class="sd"> :param fiducial: Fiducial selection</span>
<span class="sd"> :type db: GXDB</span>
<span class="sd"> :type templ: str</span>
<span class="sd"> :type file: str</span>
<span class="sd"> :type data: str</span>
<span class="sd"> :type flc: str</span>
<span class="sd"> :type chans: int</span>
<span class="sd"> :type proj: str</span>
<span class="sd"> :type x_ch: str</span>
<span class="sd"> :type y_ch: str</span>
<span class="sd"> :type fiducial: int</span>

<span class="sd"> .. versionadded:: 5.0.1</span>

<span class="sd"> **License:** `Geosoft Open License &lt;https://geosoftgxdev.atlassian.net/wiki/spaces/GD/pages/2359406/License#License-open-lic&gt;`_</span>

<span class="sd"> **Note:** This version supports projections</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">gxapi_cy</span><span class="o">.</span><span class="n">WrapDU</span><span class="o">.</span><span class="n">_import_aseg_proj</span><span class="p">(</span><span class="n">GXContext</span><span class="o">.</span><span class="n">_get_tls_geo</span><span class="p">(),</span> <span class="n">db</span><span class="p">,</span> <span class="n">templ</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">file</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">data</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">flc</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">chans</span><span class="p">,</span> <span class="n">proj</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">x_ch</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">y_ch</span><span class="o">.</span><span class="n">encode</span><span class="p">())</span></div>
<span class="n">gxapi_cy</span><span class="o">.</span><span class="n">WrapDU</span><span class="o">.</span><span class="n">_import_aseg_proj</span><span class="p">(</span><span class="n">GXContext</span><span class="o">.</span><span class="n">_get_tls_geo</span><span class="p">(),</span> <span class="n">db</span><span class="p">,</span> <span class="n">templ</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">file</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">data</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">flc</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">chans</span><span class="p">,</span> <span class="n">proj</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">x_ch</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">y_ch</span><span class="o">.</span><span class="n">encode</span><span class="p">(),</span> <span class="n">fiducial</span><span class="p">)</span></div>



Expand Down

0 comments on commit c842d8c

Please sign in to comment.