You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>This GMT supplements module has not yet been ported to the long verbose syntax. To use it, you will need to use the <ahref="../..\documentation/general/monolitic.html">Monolithic</a> mode.</p>
449
-
</div>
483
+
<divclass="code-copy-outer-scaffold"><divclass="sourceCode" id="cb1"><preclass="sourceCode julia code-with-copy"><codeclass="sourceCode julia"><spanid="cb1-1"><ahref="#cb1-1" aria-hidden="true" tabindex="-1"></a><spanclass="fu">segy2grd</span>(cmd0<spanclass="op">::</span><spanclass="dt">String</span>=<spanclass="st">""</span>, arg1<spanclass="op">=</span><spanclass="cn">nothing</span>; kwargs<spanclass="op">...</span>)</span></code></pre></div><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></div>
484
+
<p>Create a grid file from a SEGY file.</p>
485
+
<p>(<strong>Warning: Manual translate by Claude. Needs revision</strong>)</p>
<p><strong>segy2grd</strong> reads an IEEE SEGY file and creates a binary grid file. Either a simple mapping (equivalent to <ahref="../..\documentation/modules/xyz2grd.html">xyz2grd</a> -Z) or a more complicated averaging where a particular grid cell includes values from more than one sample in the SEGY file can be done. <strong>segy2grd</strong> will report if some of the nodes are not filled in with data. Such unconstrained nodes are set to a value specified by the user [Default is NaN]. Nodes with more than one value will be set to the average value.</p>
<p><em>segyfile</em> An IEEE floating point SEGY file. Traces are all assumed to start at 0 time/depth (passed as first argument or via <code>cmd0</code>).</p>
493
+
<ul>
494
+
<li><p><strong>G</strong> or <strong>outgrid</strong> or <strong>save</strong> : – <em>outgrid=filename</em><br>
495
+
Give the name of the output grid file.</p></li>
496
+
<li><p><strong>I</strong> or <strong>inc</strong> or <strong>increment</strong> or <strong>spacing</strong> : – <em>inc=x_inc</em><strong>|</strong><em>inc=(x_inc, y_inc)</em><strong>|</strong><em>inc=“xinc[+e|n][/yinc[+e|n]]”</em><br>
497
+
Specify the grid increments or the block sizes. More at <ahref="../../documentation/common_opts/common_opts.html#spacing">spacing</a></p></li>
498
+
<li><p><strong>R</strong> or <strong>region</strong> or <strong>limits</strong> : – <em>limits=(xmin, xmax, ymin, ymax)</em><strong>|</strong><em>limits=(BB=(xmin, xmax, ymin, ymax),)</em><strong>|</strong><em>limits=(LLUR=(xmin, xmax, ymin, ymax),units=“unit”)</em><strong>|</strong> …more<br>
499
+
Specify the region of interest. More at <ahref="../../documentation/common_opts/common_opts.html#limits">limits</a>. For perspective view <strong>view</strong>, optionally add <em>zmin,zmax</em>. This option may be used to indicate the range used for the 3-D axes. You may ask for a larger w/e/s/n region to have more room between the image and the axes.</p></li>
<li><p><strong>A</strong> or <strong>add</strong> or <strong>count</strong> : – <em>add=:z</em><strong>|</strong><em>add=:n</em><strong>|</strong><em>add=true</em><br>
506
+
Add up multiple values that belong to the same node (same as <strong>add=:z</strong>). Use <strong>add=:n</strong> to simply count the number of data points that were assigned to each node. [Default (no <strong>add</strong> option) will calculate mean value]. Not used for simple mapping.</p></li>
507
+
<li><p><strong>D</strong> or <strong>metadata</strong> or <strong>header</strong> : – <em>metadata=string</em><br>
508
+
Set grid metadata (title, remark, x/y/z units, etc.).</p></li>
509
+
<li><p><strong>L</strong> or <strong>nsamp</strong> or <strong>nsamples</strong> : – <em>nsamples=val</em><br>
510
+
Let <em>nsamp</em> override number of samples in each trace.</p></li>
511
+
<li><p><strong>M</strong> or <strong>ntraces</strong> : – <em>ntraces=val</em><br>
512
+
Fix number of traces to read in. Default tries to read 10000 traces. <strong>ntraces=0</strong> will read number in binary header, <strong>ntraces=n</strong> will attempt to read only <em>n</em> traces.</p></li>
513
+
<li><p><strong>Q</strong> or <strong>adjust</strong> : – <em>adjust=(xscale=val, sint=val)</em><br>
514
+
Can be used to change two different settings:<br>
515
+
<strong>xscale</strong> (or <strong>x</strong>): applies scalar <em>x-scale</em> to coordinates in trace header to match the coordinates specified in <strong>region</strong>.<br>
516
+
<strong>sint</strong> (or <strong>y</strong>): specifies sample interval as <em>s_int</em> if incorrect in the SEGY file.</p></li>
517
+
<li><p><strong>S</strong> or <strong>spacing</strong> or <strong>varspacing</strong> : – <em>spacing=:c</em><strong>|</strong><em>spacing=:o</em><strong>|</strong><em>spacing=(byte=num,)</em><br>
518
+
Set variable spacing; use <strong>:c</strong> (or <strong>:cdp</strong>) for cdp, <strong>:o</strong> (or <strong>:offset</strong>) for offset, or a NamedTuple with <strong>byte=num</strong> for 4-byte float starting at byte <em>num</em>. If <strong>spacing</strong> not set, assumes even spacing of samples at the <em>x_inc</em>, <em>y_inc</em> supplied with <strong>inc</strong>.</p></li>
519
+
<li><p><strong>V</strong> or <em>verbose</em> : – <em>verbose=true</em><strong>|</strong><em>verbose=level</em><br>
520
+
Select verbosity level. More at <ahref="../../documentation/common_opts/common_opts.html#verbose">verbose</a></p></li>
521
+
<li><p><strong>bi</strong> or <strong>binary_in</strong> : – <em>binary_in=??</em><br>
522
+
Select native binary format for primary table input. <ahref="https://docs.generic-mapping-tools.org/dev/gmt.html#bi-full">More at</a></p></li>
523
+
<li><p><strong>di</strong> or <strong>nodata_in</strong> : – <em>nodata_in=val</em><br>
524
+
Examine all input columns and if any item equals <em>val</em> we interpret this value as a missing data item and substitute the value NaN. Also sets nodes with no input SEGY coverage to this value [Default is NaN].</p></li>
525
+
<li><p><strong>r</strong> or <strong>reg</strong> or <strong>registration</strong> : – <em>reg=:p</em><strong>|</strong><em>reg=:g</em><br>
526
+
Select gridline or pixel node registration. Used only when output is a grid. <ahref="https://docs.generic-mapping-tools.org/dev/gmt.html#nodereg-full">More at</a></p></li>
<p>Note that this will read in 18-25s (or km) on each trace, but the first trace will be assumed to be at X=198.</p>
537
+
<p>To create a grid file from the SEGY file test.segy, locating traces according to the CDP number, where there are 10 CDPs per km and the sample interval is 0.1, try:</p>
538
+
<divclass="code-copy-outer-scaffold"><divclass="sourceCode" id="cb3"><preclass="sourceCode julia code-with-copy"><codeclass="sourceCode julia"><spanid="cb3-1"><ahref="#cb3-1" aria-hidden="true" tabindex="-1"></a><spanclass="im">using</span><spanclass="bu">GMT</span></span>
1 dependency successfully precompiled in 60 seconds. 80 already precompiled.</pre>
450
549
</div>
451
-
<p>Please open a <ahref="https://github.com/GenericMappingTools/GMT.jl/issues">Feature Request</a> if you would like to see this module ported to the long verbose syntax, or better yet, consider contributing the port yourself!</p>
0 commit comments