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_AlpineData.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
@@ -126,10 +126,10 @@ units = unique(tag) #get different units
126
126
We will use these units later to save the Moho data separately for each tectonic unit.
127
127
128
128
### 2.2 Converting the data to a `GMG` dataset
129
-
To convert this data to a `GMG` dataset, we now have to interpolate it to a regular grid. You can generate the respective grid with the `GMG` function `lonlatdepthGrid`
129
+
To convert this data to a `GMG` dataset, we now have to interpolate it to a regular grid. You can generate the respective grid with the `GMG` function `lonlatdepth_grid`
@@ -204,10 +204,10 @@ In creating this image, I used the `Clip` tool of Paraview to only show topograp
204
204
### 4. Cartesian data
205
205
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.
206
206
`GeophysicalModelGenerator` has a number of tools for this.
207
-
First we need do define a `projectionPoint` around which we project the data
207
+
First we need do define a `ProjectionPoint` around which we project the data
208
208
209
209
```julia
210
-
proj =projectionPoint(Lon=12.0,Lat =43)
210
+
proj =ProjectionPoint(Lon=12.0,Lat =43)
211
211
212
212
Topo_cart =convert2CartData(Topo_Alps, proj)
213
213
```
@@ -259,7 +259,7 @@ Yet, because of the curvature of the Earth, the resulting 3D model is not strict
259
259
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:
Copy file name to clipboardExpand all lines: docs/src/man/Tutorial_LaPalma.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ In order to create model setups, it is helpful to first transfer the data to Car
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
-
proj =projectionPoint(Lon=-17.84, Lat=28.56)
68
+
proj =ProjectionPoint(Lon=-17.84, Lat=28.56)
69
69
```
70
70
71
71
Once this is done you can convert the topographic data to the cartesian reference frame
@@ -80,7 +80,7 @@ In other cases, however, this is quite substantial (e.g., India-Asia collision z
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_MohoTopo_Spada.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
@@ -108,7 +108,7 @@ data_Moho_combined = GeoData(lon, lat, depth, (MohoDepth=depth*km,))
108
108
Next, we define a regular lon/lat grid
109
109
110
110
```julia
111
-
Lon, Lat, Depth =lonlatdepthGrid(4.1:0.1:11.9,42.5:.1:49,-30km)
111
+
Lon, Lat, Depth =lonlatdepth_grid(4.1:0.1:11.9,42.5:.1:49,-30km)
112
112
```
113
113
114
114
We will use a nearest neighbor interpolation method to fit a surface through the data, which has the advantage that it will take the discontinuities into account.
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
-
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`.
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
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/projection.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Typically, you load a dataset by reading it into julia and either generating a `
4
4
5
5
If you write the data to `Paraview`, it is internally converted to a Paraview structure (which involves `x,y,z` Cartesian Earth-Centered-Earth-Fixed (ECEF) coordinates using the `wgs84` ellipsoid).
6
6
7
-
Yet, if you do geodynamic calculations the chances are that the geodynamic code does not operate in spherical coordinates, but rather use cartesian ones. In that case you should transfer your data to the `CartData` structure, which requires you to specify a `projectionPoint` that is a point on the map that will later have the coordinates `(0,0)` in the `CartData` structure.
7
+
Yet, if you do geodynamic calculations the chances are that the geodynamic code does not operate in spherical coordinates, but rather use cartesian ones. In that case you should transfer your data to the `CartData` structure, which requires you to specify a `ProjectionPoint` that is a point on the map that will later have the coordinates `(0,0)` in the `CartData` structure.
8
8
9
9
10
10
#### 1. Converting
@@ -41,8 +41,8 @@ As the area is large, it covers a range of `UTM` zones (and every point has a UT
41
41
Yet, what we could do instead is show all data with respect to a single UTM zone. For this, we have to select a point around which we project (in this case more or less in the center):
0 commit comments