Skip to content

Commit 0221b3e

Browse files
committed
rename starting_topography to topography in create_model
1 parent bc20f70 commit 0221b3e

21 files changed

+127
-133
lines changed

docs/examples/bishop_basement_model.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@
16891689
},
16901690
{
16911691
"cell_type": "code",
1692-
"execution_count": 12,
1692+
"execution_count": null,
16931693
"metadata": {},
16941694
"outputs": [
16951695
{
@@ -1709,7 +1709,7 @@
17091709
"model = invert4geom.create_model(\n",
17101710
" zref=constraint_points.upward.mean(),\n",
17111711
" density_contrast=2800 - 2300,\n",
1712-
" starting_topography=starting_topography,\n",
1712+
" topography=starting_topography,\n",
17131713
")\n",
17141714
"model.inv.plot_model(\n",
17151715
" color_by=\"density\",\n",
@@ -2789,7 +2789,7 @@
27892789
},
27902790
{
27912791
"cell_type": "code",
2792-
"execution_count": 34,
2792+
"execution_count": null,
27932793
"metadata": {},
27942794
"outputs": [
27952795
{
@@ -2812,7 +2812,7 @@
28122812
"model = invert4geom.create_model(\n",
28132813
" zref=inv.model.zref,\n",
28142814
" density_contrast=inv.model.density_contrast,\n",
2815-
" starting_topography=starting_topography,\n",
2815+
" topography=starting_topography,\n",
28162816
")\n",
28172817
"\n",
28182818
"# calculate forward gravity of starting prism layer\n",
@@ -11888,7 +11888,7 @@
1188811888
"name": "python",
1188911889
"nbconvert_exporter": "python",
1189011890
"pygments_lexer": "ipython3",
11891-
"version": "3.12.12"
11891+
"version": "3.12.7"
1189211892
},
1189311893
"widgets": {
1189411894
"application/vnd.jupyter.widget-state+json": {

docs/examples/uieda_et_al_2017_CRUST1.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@
11351135
},
11361136
{
11371137
"cell_type": "code",
1138-
"execution_count": 7,
1138+
"execution_count": null,
11391139
"metadata": {
11401140
"execution": {
11411141
"iopub.execute_input": "2025-04-01T01:02:59.941478Z",
@@ -1169,7 +1169,7 @@
11691169
"true_model = invert4geom.create_model(\n",
11701170
" zref=true_zref,\n",
11711171
" density_contrast=true_density_contrast,\n",
1172-
" starting_topography=true_moho.to_dataset(name=\"upward\"),\n",
1172+
" topography=true_moho.to_dataset(name=\"upward\"),\n",
11731173
")\n",
11741174
"\n",
11751175
"true_model.inv.plot_model(\n",
@@ -1864,7 +1864,7 @@
18641864
},
18651865
{
18661866
"cell_type": "code",
1867-
"execution_count": 11,
1867+
"execution_count": null,
18681868
"metadata": {
18691869
"execution": {
18701870
"iopub.execute_input": "2025-04-01T01:03:04.297567Z",
@@ -2150,7 +2150,7 @@
21502150
"model = invert4geom.create_model(\n",
21512151
" zref=true_zref,\n",
21522152
" density_contrast=true_density_contrast,\n",
2153-
" starting_topography=starting_topography,\n",
2153+
" topography=starting_topography,\n",
21542154
")\n",
21552155
"\n",
21562156
"# calculate the forward gravity of the initial model\n",
@@ -4360,7 +4360,7 @@
43604360
"name": "python",
43614361
"nbconvert_exporter": "python",
43624362
"pygments_lexer": "ipython3",
4363-
"version": "3.12.12"
4363+
"version": "3.12.7"
43644364
},
43654365
"widgets": {
43664366
"application/vnd.jupyter.widget-state+json": {

docs/examples/uieda_et_al_2017_synthetic.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@
718718
},
719719
{
720720
"cell_type": "code",
721-
"execution_count": 5,
721+
"execution_count": null,
722722
"metadata": {
723723
"execution": {
724724
"iopub.execute_input": "2025-04-01T01:14:31.020063Z",
@@ -761,7 +761,7 @@
761761
"true_model = invert4geom.create_model(\n",
762762
" zref=true_zref,\n",
763763
" density_contrast=true_density_contrast,\n",
764-
" starting_topography=true_moho,\n",
764+
" topography=true_moho,\n",
765765
")\n",
766766
"\n",
767767
"true_model.inv.plot_model(\n",
@@ -1454,14 +1454,14 @@
14541454
},
14551455
{
14561456
"cell_type": "code",
1457-
"execution_count": 10,
1457+
"execution_count": null,
14581458
"metadata": {},
14591459
"outputs": [],
14601460
"source": [
14611461
"model = invert4geom.create_model(\n",
14621462
" zref=true_zref,\n",
14631463
" density_contrast=true_density_contrast,\n",
1464-
" starting_topography=starting_topography,\n",
1464+
" topography=starting_topography,\n",
14651465
")"
14661466
]
14671467
},
@@ -2795,7 +2795,7 @@
27952795
"name": "python",
27962796
"nbconvert_exporter": "python",
27972797
"pygments_lexer": "ipython3",
2798-
"version": "3.12.12"
2798+
"version": "3.12.7"
27992799
},
28002800
"widgets": {
28012801
"application/vnd.jupyter.widget-state+json": {

docs/how_to/adhering_to_point_measurements.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
},
101101
{
102102
"cell_type": "code",
103-
"execution_count": 3,
103+
"execution_count": null,
104104
"metadata": {},
105105
"outputs": [
106106
{
@@ -119,12 +119,12 @@
119119
"upper_model = invert4geom.create_model(\n",
120120
" zref=true_topography.to_numpy().mean(),\n",
121121
" density_contrast=2670 - 1,\n",
122-
" starting_topography=true_topography.to_dataset(name=\"upward\"),\n",
122+
" topography=true_topography.to_dataset(name=\"upward\"),\n",
123123
")\n",
124124
"lower_model = invert4geom.create_model(\n",
125125
" zref=lower_topography.to_numpy().mean(),\n",
126126
" density_contrast=3100 - 2670,\n",
127-
" starting_topography=lower_topography.to_dataset(name=\"upward\"),\n",
127+
" topography=lower_topography.to_dataset(name=\"upward\"),\n",
128128
")\n",
129129
"\n",
130130
"invert4geom.plot_prism_layers(\n",
@@ -1042,7 +1042,7 @@
10421042
},
10431043
{
10441044
"cell_type": "code",
1045-
"execution_count": 9,
1045+
"execution_count": null,
10461046
"metadata": {},
10471047
"outputs": [
10481048
{
@@ -1061,7 +1061,7 @@
10611061
"model = invert4geom.create_model(\n",
10621062
" zref=true_topography.to_numpy().mean(),\n",
10631063
" density_contrast=2670 - 1,\n",
1064-
" starting_topography=starting_topography.to_dataset(name=\"upward\"),\n",
1064+
" topography=starting_topography.to_dataset(name=\"upward\"),\n",
10651065
")\n",
10661066
"model.inv.plot_model(\n",
10671067
" color_by=\"density\",\n",

docs/how_to/constrain_the_inversion.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
},
180180
{
181181
"cell_type": "code",
182-
"execution_count": 4,
182+
"execution_count": null,
183183
"metadata": {},
184184
"outputs": [
185185
{
@@ -201,7 +201,7 @@
201201
"surface_model = invert4geom.create_model(\n",
202202
" zref=true_surface_topography.to_numpy().mean(),\n",
203203
" density_contrast=surface_density_contrast,\n",
204-
" starting_topography=true_surface_topography.to_dataset(name=\"upward\"),\n",
204+
" topography=true_surface_topography.to_dataset(name=\"upward\"),\n",
205205
")\n",
206206
"\n",
207207
"surface_model.inv.plot_model(\n",
@@ -212,7 +212,7 @@
212212
},
213213
{
214214
"cell_type": "code",
215-
"execution_count": 5,
215+
"execution_count": null,
216216
"metadata": {},
217217
"outputs": [
218218
{
@@ -235,7 +235,7 @@
235235
" zref=true_basement_topography.to_numpy().mean(),\n",
236236
" # zref = 0,\n",
237237
" density_contrast=basement_density_contrast,\n",
238-
" starting_topography=true_basement_topography.to_dataset(name=\"upward\"),\n",
238+
" topography=true_basement_topography.to_dataset(name=\"upward\"),\n",
239239
")\n",
240240
"\n",
241241
"basement_model.inv.plot_model(\n",
@@ -1218,7 +1218,7 @@
12181218
},
12191219
{
12201220
"cell_type": "code",
1221-
"execution_count": 14,
1221+
"execution_count": null,
12221222
"metadata": {},
12231223
"outputs": [
12241224
{
@@ -1237,7 +1237,7 @@
12371237
"model = invert4geom.create_model(\n",
12381238
" zref=true_basement_topography.to_numpy().mean(),\n",
12391239
" density_contrast=2800 - 1800,\n",
1240-
" starting_topography=ds,\n",
1240+
" topography=ds,\n",
12411241
" upper_confining_layer=true_surface_topography,\n",
12421242
" lower_confining_layer=xr.full_like(true_surface_topography, 100),\n",
12431243
")\n",

docs/how_to/determining_buffer_width.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@
115115
},
116116
{
117117
"cell_type": "code",
118-
"execution_count": 4,
118+
"execution_count": null,
119119
"metadata": {},
120120
"outputs": [],
121121
"source": [
122122
"no_buffer_model = invert4geom.create_model(\n",
123123
" zref=zref,\n",
124124
" density_contrast=density_contrast,\n",
125-
" starting_topography=topography.to_dataset(name=\"upward\"),\n",
125+
" topography=topography.to_dataset(name=\"upward\"),\n",
126126
")"
127127
]
128128
},
@@ -6933,7 +6933,7 @@
69336933
},
69346934
{
69356935
"cell_type": "code",
6936-
"execution_count": 13,
6936+
"execution_count": null,
69376937
"metadata": {
69386938
"execution": {
69396939
"iopub.execute_input": "2025-04-01T01:47:45.709899Z",
@@ -6947,7 +6947,7 @@
69476947
"buffer_model = invert4geom.create_model(\n",
69486948
" zref=zref,\n",
69496949
" density_contrast=density_contrast,\n",
6950-
" starting_topography=buffer_topography.to_dataset(name=\"upward\"),\n",
6950+
" topography=buffer_topography.to_dataset(name=\"upward\"),\n",
69516951
")\n",
69526952
"\n",
69536953
"# calculate gravity anomaly\n",
@@ -7191,7 +7191,7 @@
71917191
"name": "python",
71927192
"nbconvert_exporter": "python",
71937193
"pygments_lexer": "ipython3",
7194-
"version": "3.12.12"
7194+
"version": "3.12.7"
71957195
},
71967196
"widgets": {
71977197
"application/vnd.jupyter.widget-state+json": {

docs/how_to/variable_density_contrast.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@
733733
},
734734
{
735735
"cell_type": "code",
736-
"execution_count": 4,
736+
"execution_count": null,
737737
"metadata": {},
738738
"outputs": [
739739
{
@@ -1377,7 +1377,7 @@
13771377
"model = invert4geom.create_model(\n",
13781378
" zref=true_topography.values.mean(),\n",
13791379
" density_contrast=density_dist,\n",
1380-
" starting_topography=true_topography.to_dataset(name=\"upward\"),\n",
1380+
" topography=true_topography.to_dataset(name=\"upward\"),\n",
13811381
")\n",
13821382
"model"
13831383
]
@@ -2053,7 +2053,7 @@
20532053
},
20542054
{
20552055
"cell_type": "code",
2056-
"execution_count": 8,
2056+
"execution_count": null,
20572057
"metadata": {},
20582058
"outputs": [
20592059
{
@@ -2089,7 +2089,7 @@
20892089
"model = invert4geom.create_model(\n",
20902090
" zref=starting_topography.upward.values.mean(),\n",
20912091
" density_contrast=density_dist,\n",
2092-
" starting_topography=starting_topography,\n",
2092+
" topography=starting_topography,\n",
20932093
")\n",
20942094
"model.density.plot()"
20952095
]
@@ -3220,7 +3220,7 @@
32203220
"name": "python",
32213221
"nbconvert_exporter": "python",
32223222
"pygments_lexer": "ipython3",
3223-
"version": "3.12.12"
3223+
"version": "3.12.7"
32243224
},
32253225
"widgets": {
32263226
"application/vnd.jupyter.widget-state+json": {

docs/quickstart.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@
696696
},
697697
{
698698
"cell_type": "code",
699-
"execution_count": 6,
699+
"execution_count": null,
700700
"metadata": {},
701701
"outputs": [
702702
{
@@ -1300,7 +1300,7 @@
13001300
"model = invert4geom.create_model(\n",
13011301
" zref=500,\n",
13021302
" density_contrast=2670 - 1,\n",
1303-
" starting_topography=starting_topography,\n",
1303+
" topography=starting_topography,\n",
13041304
")\n",
13051305
"model"
13061306
]
@@ -1759,7 +1759,7 @@
17591759
"name": "python",
17601760
"nbconvert_exporter": "python",
17611761
"pygments_lexer": "ipython3",
1762-
"version": "3.12.12"
1762+
"version": "3.12.7"
17631763
},
17641764
"widgets": {
17651765
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)