.\" Man page generated from reStructuredText. . .TH "TALWANI3D" "1gmt" "Sep 07, 2019" "6.0.0rc4" "GMT" .SH NAME talwani3d \- Compute geopotential anomalies over 3-D bodies by the method of Talwani . .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 \fBgmt talwani3d\fP [ \fImodeltable\fP ] [ \fB\-A\fP ] [ \fB\-D\fP\fIrho\fP ] ] [ \fB\-F\fP\fBf\fP|\fBn\fP[\fIlat\fP]|\fBv\fP ] [ \fB\-G\fP\fIoutfile\fP ] [ \fB\-I\fP\fIincrement\fP ] [ \fB\-M\fP[\fBh\fP][\fBv\fP] ] [ \fB\-N\fP\fItrackfile\fP ] [ \fB\-R\fP\fIregion\fP ] [ \fB\-Z\fP\fIlevel\fP|\fIobsgrid\fP ] [ \fB\-V\fP[\fIlevel\fP] ] [ \fB\-bi\fPbinary ] [ \fB\-d\fPnodata ] [ \fB\-e\fPregexp ] [ \fB\-f\fPflags ] [ \fB\-i\fPflags ] [ \fB\-o\fPflags ] [ \fB\-r\fPreg ] [ \fB\-x\fP[[\-]\fIn\fP] ] [ \fB\-\-PAR\fP=\fIvalue\fP ] .sp \fBNote:\fP No space is allowed between the option flag and the associated arguments. .SH DESCRIPTION .sp \fBtalwani3d\fP will read the multi\-segment \fImodeltable\fP from file (or standard input). This file contains horizontal contours of a 3\-D body at different \fIz\fP\-levels, with one contour per segment. Each segment header must contain the parameters \fIzlevel rho\fP, which states the \fIz\fP level of the contour and the density of this slice (optionally, individual slice densities may be overridden by a fixed density contrast given via \fB\-D\fP). We can compute anomalies on an equidistant grid (by specifying a new grid with \fB\-R\fP and \fB\-I\fP or provide an observation grid with desired elevations) or at arbitrary output points specified 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 the horizontal contours of the bodies. Contours will be automatically closed if not already closed, and repeated vertices will be eliminated. The segment header for each slice will be examined for the pair \fIzlevel rho\fP, i.e., the depth level of the slice and a density contrast in kg/m^3; see \fB\-D\fP for overriding this value. .UNINDENT .INDENT 0.0 .TP \fB\-I\fP\fIxinc\fP[\fIunit\fP][\fB+e\fP|\fBn\fP][/\fIyinc\fP[\fIunit\fP][\fB+e\fP|\fBn\fP]] \fIx_inc\fP [and optionally \fIy_inc\fP] is the grid spacing. Optionally, append a suffix modifier. \fBGeographical (degrees) coordinates\fP: Append \fBm\fP to indicate arc minutes or \fBs\fP to indicate arc seconds. If one of the units \fBe\fP, \fBf\fP, \fBk\fP, \fBM\fP, \fBn\fP or \fBu\fP is appended instead, the increment is assumed to be given in meter, foot, km, Mile, nautical mile or US survey foot, respectively, and will be converted to the equivalent degrees longitude at the middle latitude of the region (the conversion depends on PROJ_ELLIPSOID). If \fIy_inc\fP is given but set to 0 it will be reset equal to \fIx_inc\fP; otherwise it will be converted to degrees latitude. \fBAll coordinates\fP: If \fB+e\fP is appended then the corresponding max \fIx\fP (\fIeast\fP) or \fIy\fP (\fInorth\fP) may be slightly adjusted to fit exactly the given increment [by default the increment may be adjusted slightly to fit the given domain]. Finally, instead of giving an increment you may specify the \fInumber of nodes\fP desired by appending \fB+n\fP to the supplied integer argument; the increment is then recalculated from the number of nodes and the domain. The resulting increment value depends on whether you have selected a gridline\-registered or pixel\-registered grid; see App\-file\-formats for details. Note: if \fB\-R\fP\fIgrdfile\fP is used then the grid spacing has already been initialized; use \fB\-I\fP to override the values. .UNINDENT .INDENT 0.0 .TP \fB\-R\fP\fIxmin\fP/\fIxmax\fP/\fIymin\fP/\fIymax\fP[\fB+r\fP][\fB+u\fP\fIunit\fP] (more ...) Specify the region of interest. .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 a fixed density contrast that overrides any individual slice settings in the model file, in kg/m^3. .UNINDENT .INDENT 0.0 .TP \fB\-F\fP\fBf\fP|\fBn\fP|\fBv\fP Specify desired gravitational field component. Choose between \fBf\fP (free\-air anomaly) [Default], \fBn\fP (geoid; optionally append average latitude for normal gravity reference value [Default is mid\-grid (or mid\-profile if \fB\-N\fP)]) or \fBv\fP (vertical gravity gradient). .UNINDENT .INDENT 0.0 .TP \fB\-G\fP\fIoutfile\fP Specify the name of the output data (for grids, see GRID FILE FORMATS below). Required when an equidistant grid is implied for output. If \fB\-N\fP is used then output is written to stdout unless \fB\-G\fP specifies an output file. .UNINDENT .INDENT 0.0 .TP \fB\-M\fP[\fBh\fP][\fBv\fP] Sets distance units used. Append \fBh\fP to indicate that both 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 individual (x, y[, z]) locations where we wish to compute the predicted value. When this option is used there are no grids and the output data records are written to stdout. If \fItrackfile\fP has 3 columns we take the \fIz\fP value as our observation level; this level may be overridden via \fB\-Z\fP\&. .UNINDENT .INDENT 0.0 .TP \fB\-V\fP[\fIlevel\fP] (more ...) Select verbosity level [c]. .UNINDENT .INDENT 0.0 .TP \fB\-Z\fP\fIlevel\fP|\fIobsgrid\fP Set observation level, either as a constant or variable by giveing the name of a grid with observation levels. If the latter is used then this grid determines the output grid region as well [0]. .UNINDENT .INDENT 0.0 .TP \fB\-bi\fP[\fIncols\fP][\fBt\fP] (more ...) Select native binary format for primary 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. .TP \fB\-f\fPflags Geographic grids (i.e., dimensions of longitude, latitude) will be converted to km via a "Flat Earth" approximation using the current ellipsoidal parameters. .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][,\fIt\fP[\fIword\fP]] (more ...) Select input columns and transformations (0 is first column, \fIt\fP is trailing text, append \fIword\fP to read one word only). .UNINDENT .INDENT 0.0 .TP \fB\-o\fP\fIcols\fP[,...][\fIt\fP[\fIword\fP]] (more ...) Select output columns (0 is first column; \fIt\fP is trailing text, append \fIword\fP to write one word only). .UNINDENT .INDENT 0.0 .TP \fB\-r\fP (more ...) Set node registration [gridline]. .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. .TP \fB\-\-PAR\fP=\fIvalue\fP Temporarily override a GMT default setting; repeatable. See /gmt.conf for parameters. .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 (\fB\-jg\fP). You can use \fB\-jf\fP to perform "Flat Earth" calculations (quicker but less accurate) or \fB\-je\fP to perform exact geodesic calculations (slower but more accurate; see PROJ_GEODESIC for method used). .SH EXAMPLES .sp To compute the free\-air anomalies on a grid over a 3\-D body that has been contoured and saved to body3d.txt, using 1700 kg/m^3 as the fixed density contrast, with horizontal distances in km and vertical distances in meters, try .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt talwani3d \-R\-200/200/\-200/200 \-I2 \-Mh \-G3dgrav.nc body3d.txt \-D1700 \-Ff .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 talwani3d \-Ncrossing.txt \-Mh body3d.txt \-D1700 \-Fv > vgg_crossing.txt .ft P .fi .UNINDENT .UNINDENT .sp Finally, the geoid anomaly along the same track in crossing.txt for the same model (at 30S) is written to n_crossing.txt by .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt talwani3d \-Ncrossing.txt \-Mh body3d.txt \-D1700 \-Fn\-30 \-Gn_crossing.txt .ft P .fi .UNINDENT .UNINDENT .SH REFERENCES .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., and M. Ewing, 1960, Rapid computation of gravitational attraction of three\-dimensional bodies of arbitrary shape, \fIGeophysics, 25\fP, 203\-225. .SH SEE ALSO .sp gmt.conf, gmt, grdmath, gravfft, gmtgravmag3d, grdgravmag3d, talwani2d .SH COPYRIGHT 2019, The GMT Team .\" Generated by docutils manpage writer. .