.\" Man page generated from reStructuredText. . .TH "TALWANI2D" "1gmt" "May 21, 2019" "5.4.5" "GMT" .SH NAME talwani2d \- Compute free-air, geoid or vertical gravity gradients anomalies over 2-D bodies . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp \fBtalwani2d\fP [ \fImodeltable\fP ] [ \fB\-A\fP ] [ \fB\-D\fP\fIrho\fP ] ] [ \fB\-F\fP\fBf\fP|\fBn\fP[\fIlat\fP]|\fBv\fP ] [ \fB\-M\fP[\fBh\fP][\fBv\fP] ] [ \fB\-N\fP\fItrackfile\fP ] [ \fB\-T\fP\fImin\fP\fImax\fP/\fIinc\fP ] [ \fB\-Z\fP\fIlevel\fP[\fIymin\fP/\fIymax\fP] ] [ \fB\-V\fP[\fIlevel\fP] ] [ \fB\-bi\fPbinary ] [ \fB\-d\fPnodata ] [ \fB\-e\fPregexp ] [ \fB\-i\fPflags ] [ \fB\-o\fPflags ] [ \fB\-x\fP[[\-]\fIn\fP] ] .sp \fBNote:\fP No space is allowed between the option flag and the associated arguments. .SH DESCRIPTION .sp \fBtalwani2d\fP will read the multi\-segment \fImodeltable\fP from file or standard input. This file contains cross\-sections of one or more 2\-D bodies, with one polygon per segment. The segment header must contain the parameter \fIrho\fP, which states the the density of this body (individual body densities may be overridden by a fixed constant density contrast given via \fB\-D\fP). We can compute anomalies on an equidistant lattice (by specifying a lattice with \fB\-T\fP) or provide arbitrary output points specified in a file via \fB\-N\fP\&. Choose between free\-air anomalies, vertical gravity gradient anomalies, or geoid anomalies. Options are available to control axes units and direction. .SH REQUIRED ARGUMENTS .INDENT 0.0 .TP .B \fImodeltable\fP The file describing cross\-sectional polygons of one or more bodies. Polygons will be automatically closed if not already closed, and repeated vertices will be eliminated. .UNINDENT .SH OPTIONAL ARGUMENTS .INDENT 0.0 .TP \fB\-A\fP The \fIz\fP\-axis should be positive upwards [Default is down]. .UNINDENT .INDENT 0.0 .TP \fB\-D\fP\fIunit\fP Sets fixed density contrast that overrides any setting in model file, in kg/m^3. .UNINDENT .INDENT 0.0 .TP \fB\-F\fP\fBf\fP|\fBn\fP[\fIlat\fP]|\fBv\fP Specify desired gravitational field component. Choose between \fBf\fP (free\-air anomaly) [Default], \fBn\fP (geoid, and optionally append average latitude for normal gravity reference value [45]) or \fBv\fP (vertical gravity gradient). .UNINDENT .INDENT 0.0 .TP \fB\-M\fP[\fBh\fP][\fBv\fP] Sets units used. Append \fBh\fP to indicate horizontal distances are in km [m], and append \fBz\fP to indicate vertical distances are in km [m]. .UNINDENT .INDENT 0.0 .TP \fB\-N\fP\fItrackfile\fP Specifies locations where we wish to compute the predicted value. When this option is used you cannot use \fB\-T\fP to set an equidistant lattice. The output data records are written to stdout. .UNINDENT .INDENT 0.0 .TP \fB\-T\fP\fImin\fP\fImax\fP/\fIinc\fP Specify an equidistant output lattice starting at \fIx = min\fP, with increments \fIinc\fP and ending at \fIx = max\fP\&. .UNINDENT .INDENT 0.0 .TP \fB\-Z\fP\fIlevel\fP[\fIymin\fP/\fIymax\fP] Set observation level as a constant [0]. Optionally, and for gravity anomalies only, append the finite extent limits of a 2.5\-D body. .UNINDENT .INDENT 0.0 .TP \fB\-bi\fP[\fIncols\fP][\fBt\fP] (more ...) Select native binary input. [Default is 2 input columns]. .UNINDENT .INDENT 0.0 .TP \fB\-d\fP[\fBi\fP|\fBo\fP]\fInodata\fP (more ...) Replace input columns that equal \fInodata\fP with NaN and do the reverse on output. .UNINDENT .INDENT 0.0 .TP \fB\-e\fP[\fB~\fP]\fI"pattern"\fP \fB|\fP \fB\-e\fP[\fB~\fP]/\fIregexp\fP/[\fBi\fP] (more ...) Only accept data records that match the given pattern. .UNINDENT .INDENT 0.0 .TP \fB\-h\fP[\fBi\fP|\fBo\fP][\fIn\fP][\fB+c\fP][\fB+d\fP][\fB+r\fP\fIremark\fP][\fB+r\fP\fItitle\fP] (more ...) Skip or produce header record(s). Not used with binary data. .UNINDENT .INDENT 0.0 .TP \fB\-i\fP\fIcols\fP[\fB+l\fP][\fB+s\fP\fIscale\fP][\fB+o\fP\fIoffset\fP][,\fI\&...\fP] (more ...) Select input columns and transformations (0 is first column). .UNINDENT .INDENT 0.0 .TP \fB\-o\fP\fIcols\fP[,...] (more ...) Select output columns (0 is first column). .UNINDENT .INDENT 0.0 .TP \fB\-V\fP[\fIlevel\fP] (more ...) Select verbosity level [c]. .UNINDENT .INDENT 0.0 .TP \fB\-x\fP[[\-]\fIn\fP] (more ...) Limit number of cores used in multi\-threaded algorithms (OpenMP required). .UNINDENT .INDENT 0.0 .TP \fB\-:\fP[\fBi\fP|\fBo\fP] (more ...) Swap 1st and 2nd column on input and/or output. .UNINDENT .INDENT 0.0 .TP \fB\-^\fP or just \fB\-\fP Print a short message about the syntax of the command, then exits (NOTE: on Windows just use \fB\-\fP). .TP \fB\-+\fP or just \fB+\fP Print an extensive usage (help) message, including the explanation of any module\-specific option (but not the GMT common options), then exits. .TP \fB\-?\fP or no arguments Print a complete usage (help) message, including the explanation of all options, then exits. .UNINDENT .SH UNITS .sp For map distance unit, append \fIunit\fP \fBd\fP for arc degree, \fBm\fP for arc minute, and \fBs\fP for arc second, or \fBe\fP for meter [Default], \fBf\fP for foot, \fBk\fP for km, \fBM\fP for statute mile, \fBn\fP for nautical mile, and \fBu\fP for US survey foot. By default we compute such distances using a spherical approximation with great circles. Prepend \fB\-\fP to a distance (or the unit is no distance is given) to perform "Flat Earth" calculations (quicker but less accurate) or prepend \fB+\fP to perform exact geodesic calculations (slower but more accurate). .SH EXAMPLES .sp To compute the free\-air anomalies on a grid over a 2\-D body that has been contoured and saved to body.txt, using 1.7 g/cm^3 as the density contrast, try .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt talwani2d \-T\-200/200/2 body.txt \-D1700 \-Fg > 2dgrav.txt .ft P .fi .UNINDENT .UNINDENT .sp To obtain the vertical gravity gradient anomaly along the track in crossing.txt for the same model, try .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt talwani2d \-Ncrossing.txt body.txt \-D1700 \-Fv > vgg_crossing.txt .ft P .fi .UNINDENT .UNINDENT .sp The geoid anomaly for the same setup is given by .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt talwani2d \-Ncrossing.txt body.txt \-D1700 \-Fn > n_crossing.txt .ft P .fi .UNINDENT .UNINDENT .SH NOTES .INDENT 0.0 .IP 1. 3 The 2\-D geoid anomaly is a logarithmic potential and thus has no natural reference level. We simply remove the most negative (if density contrast is positive) or positive (if density contrast is negative) computed value from all values, rendering the entire anomaly positive (or negative). You can use gmtmath to change the zero level to suit your needs. .UNINDENT .SH REFERENCES .sp Chapman, M. E., 1979, Techniques for interpretation of geoid anomalies, \fIJ. Geophys. Res., 84(B8)\fP, 3793\-3801. .sp Kim, S.\-S., and P. Wessel, 2016, New analytic solutions for modeling vertical gravity gradient anomalies, \fIGeochem. Geophys. Geosyst., 17\fP, \fI\%http://dx.doi.org/10.1002/2016GC006263\fP\&. .sp Talwani, M., J. L. Worzel, and M. Landisman, 1959, Rapid gravity computations for two\-dimensional bodies with application to the Mendocino submarine fracture zone, \fIJ. Geophys. Res., 64\fP, 49\-59. .SH SEE ALSO .sp gmt.conf, gmt, grdmath, gmtmath, gravfft, gmtgravmag3d, grdgravmag3d, talwani3d .SH COPYRIGHT 2019, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe .\" Generated by docutils manpage writer. .