-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcookbook.html
294 lines (257 loc) · 21 KB
/
cookbook.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cookbook — Fatiando 0.5</title>
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/gallery.css" type="text/css" />
<link rel="stylesheet" href="_static/bootswatch-3.2.0/flatly/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" href="_static/style.css" type="text/css" />
<link rel="stylesheet" href="_static/font-awesome/css/font-awesome.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: 'ac692aa892ddbb386f6a76d0f429099587eb2b37',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="_static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="_static/js/jquery-fix.js"></script>
<script type="text/javascript" src="_static/bootstrap-3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="_static/bootstrap-sphinx.js"></script>
<link rel="shortcut icon" href="_static/favicon.ico"/>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="top" title="Fatiando 0.5" href="index.html" />
<link rel="next" title="Meshing: Making a grid of 3D point sources" href="cookbook/mesher_pointgrid.html" />
<link rel="prev" title="Contributors" href="contributors.html" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Plausible analytics for anonymous usage statistics -->
<script defer data-domain="legacy.fatiando.org" src="https://plausible.io/js/plausible.js"></script>
</head>
<body role="document">
<div class="deprecation-banner" id="deprecationBanner">
<div class="container">
<p>
The <code>fatiando</code> package has been deprecated. Please check out
the new tools in the Fatiando a Terra website:
<a href="https://www.fatiando.org">www.fatiando.org</a>
</p>
</div>
</div>
<div id="navbar" class="navbar navbar-default navbar-default ">
<div class="container">
<div class="navbar-header">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><img src="_static/fatiando-logo.png">
fatiando</a>
<span class="navbar-text navbar-version pull-left"><b>0.5</b></span>
</div>
<div class="collapse navbar-collapse nav-collapse">
<ul class="nav navbar-nav">
<li><a href="install.html">Install</a></li>
<li><a href="gallery/index.html">Gallery</a></li>
<li><a href="api/fatiando.html">API</a></li>
<li><a href="docs.html">Docs</a></li>
<li><a href="develop.html">Contribute</a></li>
<li class="dropdown globaltoc-container">
<a role="button"
id="dLabelGlobalToc"
data-toggle="dropdown"
data-target="#"
href="index.html">Site <b class="caret"></b></a>
<ul class="dropdown-menu globaltoc"
role="menu"
aria-labelledby="dLabelGlobalToc"></ul>
</li>
</ul>
<form class="navbar-form navbar-right" action="search.html" method="get">
<div class="form-group">
<input type="text" name="q" class="form-control" placeholder="Search" />
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-3">
<div id="sidebar" class="bs-sidenav" role="complementary"><ul>
<li><a class="reference internal" href="#">Cookbook</a><ul>
<li><a class="reference internal" href="#meshes-and-geometric-objects">Meshes and geometric objects</a></li>
<li><a class="reference internal" href="#regular-grids-and-irregularly-spaced-data">Regular grids and irregularly spaced data</a></li>
<li><a class="reference internal" href="#gravity-and-magnetics">Gravity and magnetics</a></li>
<li><a class="reference internal" href="#seismology-and-seismics">Seismology and seismics</a></li>
<li><a class="reference internal" href="#visualization">Visualization</a></li>
<li><a class="reference internal" href="#geothermal">Geothermal</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="col-md-9">
<div class="section" id="cookbook">
<span id="id1"></span><h1>Cookbook<a class="headerlink" href="#cookbook" title="Permalink to this headline">¶</a></h1>
<p>Here you’ll find some recipes for doing common tasks using Fatiando, like
generating synthetic data, running inversions, and plotting things.</p>
<div class="admonition tip">
<p class="first admonition-title">Tip</p>
<p class="last">You can download <code class="docutils literal"><span class="pre">.py</span></code> files of the recipes by clicking on the
“Download source code” link below the recipe title.</p>
</div>
<div class="section" id="meshes-and-geometric-objects">
<h2>Meshes and geometric objects<a class="headerlink" href="#meshes-and-geometric-objects" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_pointgrid.html">Meshing: Making a grid of 3D point sources</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_prismmesh.html">Meshing: Make and plot a 3D prism mesh</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_prismmesh_filter.html">Meshing: Filter prisms from a 3D prism mesh based on their physical properties</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_prismmesh_topo.html">Meshing: Make and plot a 3D prism mesh with topography</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_prismmesh_vardens.html">Meshing: Make a 3D prism mesh with depth-varying density</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_prismrelief_topo.html">Meshing: Generate a 3D prism model of the topography</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_squaremesh_from_image.html">Meshing: Generate a SquareMesh and get the physical properties from an image</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_tesseroid.html">Meshing: Make and plot a tesseroid with the Earth</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_tesseroidmesh.html">Meshing: Make and plot a tesseroid mesh</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/mesher_tesseroidmesh_topo.html">Meshing: Make and plot a tesseroid mesh with topography</a></li>
</ul>
</div>
</div>
<div class="section" id="regular-grids-and-irregularly-spaced-data">
<h2>Regular grids and irregularly spaced data<a class="headerlink" href="#regular-grids-and-irregularly-spaced-data" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="cookbook/grid_cut.html">Gridding: Cut a section from a grid</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/grid_interpolate.html">Gridding: Grid irregularly sampled data.</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/grid_pad.html">Gridding: Pad gridded data</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/grid_profile.html">Gridding: Extract a profile from map data</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/grid_scatter.html">Gridding: Generate and plot irregular grids (scatter)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/grid_surfer.html">Gridding: Load a Surfer ASCII grid file</a></li>
</ul>
</div>
</div>
<div class="section" id="gravity-and-magnetics">
<h2>Gravity and magnetics<a class="headerlink" href="#gravity-and-magnetics" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_2d_polygon_interactive.html">GravMag: Interactive 2D forward modeling with polygons</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_2d_polygon_picker.html">GravMag: 2D forward modeling with polygons</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_basin2d_polygonal.html">GravMag: 2D gravity inversion for the relief of a basin</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_basin2d_trapezoidal.html">GravMag: Simple gravity inversion for the relief of a 2D trapezoidal basin</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_basin2d_triangular.html">GravMag: Simple gravity inversion for the relief of a 2D triangular basin</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_eqlayer_pel_polereduc.html">GravMag: Use the Polynomial Equivalent Layer to reduce a magnetic total field anomaly to the pole</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_eqlayer_pel_upcontinue.html">GravMag: Use the polynomial equivalent layer to upward continue gravity data</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_eqlayer_polereduc.html">GravMag: Use an equivalent layer to reduce a magnetic total field anomaly to the pole</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_eqlayer_upcontinue.html">GravMag: Use an equivalent layer to upward continue gravity data</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_grav_polyprism.html">GravMag: Forward gravity modeling using a stack of 3D polygonal model</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_grav_prism.html">GravMag: Forward modeling of the gravitational potential and its derivatives using 3D model</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_grav_sphere.html">GravMag: Forward modeling of the gravity anomaly and gravity gradient tensor using model</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_grav_tesseroid.html">GravMag: Forward modeling of the gravitational potential and its derivatives using tesseroids</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_harvester_grav.html">GravMag: 3D gravity inversion by planting anomalous densities using <code class="docutils literal"><span class="pre">harvester</span></code> (more complex interactive example)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_harvester_tensor.html">GravMag: 3D gravity gradient inversion by planting anomalous densities using <code class="docutils literal"><span class="pre">harvester</span></code> (with non-targeted sources)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_harvester_weights.html">GravMag: Using data weights in 3D inversion using <code class="docutils literal"><span class="pre">harvester</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_imaging_geninv.html">GravMag: 3D imaging using the Generalized Inverse method on synthetic gravity data (more complex model + noisy data)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_imaging_migration.html">GravMag: 3D imaging using the migration method on synthetic gravity data (more complex model + noisy data)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_imaging_sandwich.html">GravMag: 3D imaging using the sandwich model method on synthetic gravity data (simple example)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_mag_polyprism.html">GravMag: 3D forward modeling of total-field magnetic anomaly using polygonal prisms</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_mag_prism.html">GravMag: 3D forward modeling of total-field magnetic anomaly using rectangular prisms (model with induced and remanent magnetization)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_mag_sphere.html">GravMag: 3D forward modeling of total-field magnetic anomaly using spheres</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_magdir_dipolemagdir.html">GravMag: Use the DipoleMagDir class to estimate the magnetization direction of dipoles with known centers</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_normal_gravity.html">GravMag: Calculate the gravity disturbance and Bouguer anomaly for Hawaii</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_tensor_centerofmass.html">GravMag: Center of mass estimation using the first eigenvector of the gravity gradient tensor (simple model)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_tensor_centerofmass_expanding_window.html">GravMag: Center of mass estimation using the first eigenvector of the gravity gradient tensor (2 sources with expanding windows)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_tensor_invariants.html">GravMag: Calculate the gravity gradient tensor invariants</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_tensor_polyprism.html">GravMag: Generate synthetic gradient tensor data from polygonal prisms</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_tensor_prism_noisy.html">GravMag: Generate noise-corrupted gravity gradient tensor data</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_transform_deriv.html">GravMag: Calculating the derivatives of the gravity anomaly using FFT</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_transform_rtp.html">GravMag: Reduction to the pole of a total field anomaly using FFT</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_transform_tga.html">GravMag: Calculate the analytic signal of a total field anomaly using FFT</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/gravmag_transform_upcontinue.html">GravMag: Upward continuation of noisy gz data</a></li>
</ul>
</div>
</div>
<div class="section" id="seismology-and-seismics">
<h2>Seismology and seismics<a class="headerlink" href="#seismology-and-seismics" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_epic2d.html">Seismic: 2D epicenter estimation assuming a homogeneous and flat Earth</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_profile_vertical.html">Seismic: Invert vertical seismic profile (VSP) traveltimes for the velocity of a layered model.</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_profile_vertical_smooth.html">Seismic: Invert vertical seismic profile (VSP) traveltimes using smoothness regularization and unknown layer thicknesses</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_srtomo_damped.html">Seismic: 2D straight-ray tomography using damping regularization</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_srtomo_sharp.html">Seismic: 2D straight-ray tomography using sharpness (total variation) regularization</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_wavefd_elastic_psv.html">Seismic: 2D finite difference simulation of elastic P and SV wave propagation</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_wavefd_elastic_sh.html">Seismic: 2D finite difference simulation of elastic SH wave propagation</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_wavefd_love_wave.html">Seismic: 2D finite difference simulation of elastic SH wave propagation in a medium with a discontinuity (i.e., Moho), generating Love waves.</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_wavefd_rayleigh_wave.html">Seismic: 2D finite difference simulation of elastic P and SV wave propagation in a medium with a discontinuity (i.e., Moho), generating Rayleigh waves</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/seismic_wavefd_scalar.html">Seismic: 2D finite difference simulation of scalar wave propagation.</a></li>
</ul>
</div>
</div>
<div class="section" id="visualization">
<h2>Visualization<a class="headerlink" href="#visualization" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_mpl_basemap.html">Vis: Plot a map using the Orthographic map projection and filled contours</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_mpl_basemap2.html">Vis: Plot a map using the Mercator map projection and pseudo-color</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_mpl_basemap3.html">Vis: Plot a map using the Robinson map projection and contours</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_mpl_contour.html">Vis: Plot contour lines and filled contours</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_mpl_irregular_data.html">Vis: Plotting irregularly sampled map data</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_mpl_seismic.html">Seismic: plotting a seismic section from a SEGY</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_myv_color.html">Vis: Set the colors in figures, prisms, polygonal prisms and tesseroids.</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_myv_earth.html">Vis: Plot the Earth, continents, inner and outer core in 3D with Mayavi2</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/vis_myv_exaggerate.html">Vis: Exaggerate the vertical dimension of 3D plots</a></li>
</ul>
</div>
</div>
<div class="section" id="geothermal">
<h2>Geothermal<a class="headerlink" href="#geothermal" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="cookbook/geothermal_climsig_abrupt.html">Geothermal: Forward and inverse modeling of an abrupt change in temperature measured in a well</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/geothermal_climsig_linear.html">Geothermal: Forward and inverse modeling of a linear change in temperature measured in a well</a></li>
<li class="toctree-l1"><a class="reference internal" href="cookbook/geothermal_climsig_wrong.html">Geothermal: Climate signal: What happens when assuming a climate change is linear, when in fact it was abrupt?</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="pull-right">
<a href="#">Back to top</a>
<br/>
<div id="sourcelink">
<a href="_sources/cookbook.txt"
rel="nofollow">Source</a>
</div>
</p>
<p class="text-center">
© Copyright 2010-2016, Leonardo Uieda.
Created using <a
href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
</p>
</div>
</footer>
<!-- Load script for fixing the deprecation warning at the top when scrolling -->
<script type="text/javascript" src="_static/fixed_banner.js"></script>
</body>
</html>