.\" Man page generated from reStructuredText. . .TH "TALWANI3D" "1gmt" "Jan 10, 2019" "5.4.5" "GMT" .SH NAME talwani3d \- Compute free-air, geoid or vertical gravity gradients anomalies over 3-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 \fBtalwani3d\fP [ \fImodeltable\fP ] [ \fB\-A\fP ] [ \fB\-D\fP\fIrho\fP ] ] [ \fB\-F\fP\fBf\fP|\fBn\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\-fg\fP ] [ \fB\-i\fPflags ] [ \fB\-o\fPflags ] [ \fB\-r\fP ] [ \fB\-x\fP[[\-]\fIn\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 contours of a 3\-D body at different \fIz\fP\-levels, with one contour per segment. The segment header must contain the parameters \fIzlevel rho\fP, which states the \fIz\fP contour level and the density of this slice (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 elevations) or at arbitrary output points specified via \fB\-N\fP\&. Chose from 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. .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 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|\fBv\fP Specify desired gravitational field component. Choose between \fBf\fP (free\-air anomaly) [Default], \fBn\fP (geoid) 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 \fBG\fP specifies an output file. .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 there are no grids and the output data records are written to stdout. .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 give the name of a grid with observation levels. If the latter is used the the grid determines the output grid region [0]. .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. .TP \fB\-fg\fP Geographic grids (dimensions of longitude, latitude) will be converted to km via a "Flat Earth" approximation using the current ellipsoid 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] (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\-r\fP (more ...) Set pixel 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. .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 3\-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 talwani3d \-R\-200/200/\-200/200 \-I2 \-G3dgrav.nc body.txt \-D1700 \-Fg .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 body.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 is written to n_crossing.txt by .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gmt talwani3d \-Ncrossing.txt body.txt \-D1700 \-Fn \-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, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe .\" Generated by docutils manpage writer. .