You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/man/Tutorial_Basic.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ GeoData
31
31
````
32
32
33
33
This is a so-called `GeoData` object, which is a 3D grid of seismic velocities as a function of longitude, latitude and depth, which can include various fields (here we only have a single field: `:dVp_Percentage`)
34
-
We can save this in `VTK` format, which is a widely used format that can for exampke be read by the 3D open-source visualization tool [Paraview](https://www.paraview.org/):
34
+
We can save this in `VTK` format, which is a widely used format that can for example be read by the 3D open-source visualization tool [Paraview](https://www.paraview.org/):
35
35
36
36
```julia
37
37
write_paraview(Tomo_Alps_full,"Tomo_Alps_full")
@@ -101,7 +101,7 @@ After loading the new data again in paraview, switching to the proper data field
Paraview has the option to `Slice` through the data but it is not very intuitive to do this in 3D. Another limitation of Paraview is that it does not have native support for spherical coordinates, and therefore the data is translated to cartesian (`x`,`y`,`z`) coordinates (with the center of the Earth at `(0,0,0)`).
104
+
Paraview has the option to `Slice` through the data but it is not very intuitive to do this in 3D. Another limitation of Paraview is that it does not have native support for spherical coordinates, and therefore the data is translated to Cartesian (`x`,`y`,`z`) coordinates (with the center of the Earth at `(0,0,0)`).
105
105
That makes this a bit cumbersome to make a cross-section at a particular location.
106
106
If you are interested in this you can use the `cross_section` function:
107
107
@@ -214,9 +214,9 @@ After doing all these steps, you should see something like this:
As you can see, the curvature or the Earth is taken into account here. Yet, for many applications it is more convenient to work in Cartesian coordinates (kilometers) rather then in geographic coordinates.
217
+
As you can see, the curvature or the Earth is taken into account here. Yet, for many applications it is more convenient to work in Cartesian coordinates (kilometers) rather than in geographic coordinates.
218
218
`GeophysicalModelGenerator` has a number of tools for this.
219
-
First we need do define a `ProjectionPoint` around which we project the data
219
+
First we need to define a `ProjectionPoint` around which we project the data
220
220
221
221
```julia
222
222
proj =ProjectionPoint(Lon=12.0,Lat =43)
@@ -267,7 +267,7 @@ Saved file: Topo_cart.vts
267
267
As the coordinates are now aligned with the `x`,`y`,`z` coordinate axes in Paraview it is now straightforward to use the build-in tools to explore the data.
268
268
269
269
### 5. Rectilinear data
270
-
Yet, because of the curvature of the Earth, the resulting 3D model is not strictly rectilinear, which is often a requiment for cartesian numerical models.
270
+
Yet, because of the curvature of the Earth, the resulting 3D model is not strictly rectilinear, which is often a requirement for Cartesian numerical models.
271
271
This can be achieved in a relatively straightforward manner, by creating a new 3D dataset that is slightly within the curved boundaries of the projected data set:
Note that this data is in geographic coordinates, which makes it non-trivial to create slices through the data (see coordinate axis in the plot, where `z` is *not* pointing upwards).
62
62
63
-
## 2. Convert data to cartesian coordinates
63
+
## 2. Convert data to Cartesian coordinates
64
64
In order to create model setups, it is helpful to first transfer the data to Cartesian.
65
65
This requires us to first determine a *projection point*, that is fixed. Often, it is helpful to use the center of the topography for this. In the present example, we will center the model around La Palma itself:
66
66
67
67
```julia
68
68
proj =ProjectionPoint(Lon=-17.84, Lat=28.56)
69
69
```
70
70
71
-
Once this is done you can convert the topographic data to the cartesian reference frame
71
+
Once this is done you can convert the topographic data to the Cartesian reference frame
72
72
73
73
```julia
74
74
EQ_cart =convert2CartData(data_all_EQ, proj);
75
75
Topo_cart =convert2CartData(Topo, proj)
76
76
```
77
77
78
-
It is important to realize that the cartesian coordinates of the topographic grid is no longer strictly orthogonal after this conversion. You don't notice that in the current example, as the model domain is rather small.
78
+
It is important to realize that the Cartesian coordinates of the topographic grid is no longer strictly orthogonal after this conversion. You don't notice that in the current example, as the model domain is rather small.
79
79
In other cases, however, this is quite substantial (e.g., India-Asia collision zone).
80
80
LaMEM needs an orthogonal grid of topography, which we can create with:
Copy file name to clipboardExpand all lines: docs/src/man/Tutorial_NumericalModel_2D.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The aim of this tutorial is to show you how to create 2D numerical model setups
9
9
10
10
### 2D Subduction setup
11
11
12
-
Lets start with creating a 2D model setup in cartesian coordinates, which uses the `CartData` data structure
12
+
Lets start with creating a 2D model setup in Cartesian coordinates, which uses the `CartData` data structure
13
13
14
14
```julia
15
15
using GeophysicalModelGenerator
@@ -351,7 +351,7 @@ We have a number of other functions to help create a geometry, specifically:
351
351
-`AddCylinder!`
352
352
353
353
The help functions are quite self-explanatory, so we won't show it in detail here.
354
-
If you have a topography surface or any other horizontal surface, you can surface with the cartesian grid with `above_surface` or `below_surface`.
354
+
If you have a topography surface or any other horizontal surface, you can surface with the Cartesian grid with `above_surface` or `below_surface`.
355
355
356
356
Also, if you wish to take a seismic tomography as inspiration to set a slab geometry, you can interpolate it to a `CartGrid` with the same dimensions and use that with the julia `findall` function.
Copy file name to clipboardExpand all lines: docs/src/man/Tutorial_VolcanoModel_3D.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The aim of this tutorial is to show you how to create 3D numerical model setups
5
5
6
6
### Generating the model
7
7
8
-
Lets start with creating a 3D model setup in cartesian coordinates, which uses the `CartData` data structure, with a resolution of $ 128 \times 128 \times 128 $ grid points, inside the domain $\Omega \in [-100,100] \times [-100,100] \times [-110,50]$ km
8
+
Lets start with creating a 3D model setup in Cartesian coordinates, which uses the `CartData` data structure, with a resolution of $ 128 \times 128 \times 128 $ grid points, inside the domain $\Omega \in [-100,100] \times [-100,100] \times [-110,50]$ km
Copy file name to clipboardExpand all lines: docs/src/man/datastructures.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The main data structure used in GeophysicalModelGenerator.jl is `GeoData`, which contains info about the `longitude`,`latitude`, and `depth` of a data set, as well as several data sets itself.
4
4
We also provide a `UTMData`, which is essentially the same but with UTM coordinates, and a `CartData` structure, which has Cartesian coordinates in kilometers (as used in many geodynamic codes). If one wishes to transfer `GeoData` to `CartData`, one needs to provide a `ProjectionPoint`.
5
-
For plotting, we transfer this into the `ParaviewData` structure, which has cartesian coordinates centered around the center of the Earth. We employ the `wgs84` reference ellipsoid as provided by the [Geodesy.jl](https://github.com/JuliaGeo/Geodesy.jl) package to perform this transformation.
5
+
For plotting, we transfer this into the `ParaviewData` structure, which has Cartesian coordinates centered around the center of the Earth. We employ the `wgs84` reference ellipsoid as provided by the [Geodesy.jl](https://github.com/JuliaGeo/Geodesy.jl) package to perform this transformation.
Copy file name to clipboardExpand all lines: docs/src/man/lamem.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# LaMEM
2
2
3
-
In order to generate geodynamic simulations from setups created with `GeophysicalModelGenerator.jl`, we provide a few routines that directly create marker input files for the 3D geodynamic modelling software [LaMEM](https://github.com/UniMainzGeo/LaMEM), which is an open-source cartesian code to perform crustal and lithospheric-scale simulations.
3
+
In order to generate geodynamic simulations from setups created with `GeophysicalModelGenerator.jl`, we provide a few routines that directly create marker input files for the 3D geodynamic modelling software [LaMEM](https://github.com/UniMainzGeo/LaMEM), which is an open-source Cartesian code to perform crustal and lithospheric-scale simulations.
4
4
If you want to learn how to run LaMEM simulations, the easiest way to get started is by looking at [LaMEM.jl](https://github.com/JuliaGeodynamics/LaMEM.jl) which is integrated with `GMG`
5
5
6
6
The routines provided here have the following functionality:
0 commit comments