|
7 | 7 | using Printf # do we need this? |
8 | 8 | using Statistics # do we need that? |
9 | 9 |
|
10 | | -export voxGrav |
| 10 | +export voxel_grav |
11 | 11 |
|
12 | 12 | """ |
13 | | - voxGrav(X::Array{Float64, 3}, Y::Array{Float64, 3}, Z::Array{Float64, 3}, RHO::Array{Float64, 3}; |
| 13 | + voxel_grav(X::Array{Float64, 3}, Y::Array{Float64, 3}, Z::Array{Float64, 3}, RHO::Array{Float64, 3}; |
14 | 14 | refMod="AVG", lengthUnit="m", rhoTol=1e-9, Topo=[], outName="Bouguer", printing=true) |
15 | 15 |
|
16 | | - Computes Bouguer anomalies and gradients |
17 | | -
|
18 | | - Required arguments: |
19 | | - X,Y,Z: 3D matrices with the coordinates of the grid (X should vary in the first dimension, Y in the second, Z (vertical) in the third) |
20 | | - RHO: 3D matrix with the density at each grid point [kg/m^3] |
21 | | -
|
22 | | - Optional arguments: |
23 | | - refMod: 1D vector with the reference density for each depth |
24 | | - Alternatively, the strings "NE", "SE", "SW", "NW", "AVG" can be used. |
25 | | - In that case, one of the corners of `RHO` is used as reference model. |
26 | | - In case of "AVG" the reference model is the average of each depth slice. |
27 | | - lengthUnit: The unit of the coordinates and topography file. Either "m" or "km" |
28 | | - rhoTol: density differences smaller than rhoTol will be ignored [kg/m^3] |
29 | | - Topo: 2D matrix with the topography of the surface (only relevant for the paraview output) |
30 | | - outName: name of the paraview output (do not include file type) |
31 | | - printing: activate printing of additional information [true or false] |
| 16 | +Computes Bouguer anomalies and gradients |
| 17 | +
|
| 18 | +Required arguments: |
| 19 | +=== |
| 20 | +- `X`,`Y`,`Z`: 3D matrices with the coordinates of the grid (X should vary in the first dimension, Y in the second, Z (vertical) in the third) |
| 21 | +- `RHO`: 3D matrix with the density at each grid point [kg/m^3] |
| 22 | +
|
| 23 | +
|
| 24 | +Optional arguments: |
| 25 | +=== |
| 26 | +- `refMod`: 1D vector with the reference density for each depth. Alternatively, the strings "NE", "SE", "SW", "NW", "AVG" can be used. In that case, one of the corners of `RHO` is used as reference model.In case of "AVG" the reference model is the average of each depth slice. |
| 27 | +- `lengthUnit`: The unit of the coordinates and topography file. Either "m" or "km" |
| 28 | +- `rhoTol`: density differences smaller than `rhoTol` will be ignored [kg/m^3] |
| 29 | +- `Topo`: 2D matrix with the topography of the surface (only relevant for the paraview output) |
| 30 | +- `outName`: name of the paraview output (do not include file type) |
| 31 | +- `printing`: activate printing of additional information [`true` or `false`] |
32 | 32 | """ |
33 | | -function voxGrav(X::Array{Float64, 3}, Y::Array{Float64, 3}, Z::Array{Float64, 3}, RHO::Array{Float64, 3}; |
| 33 | +function voxel_grav(X::Array{Float64, 3}, Y::Array{Float64, 3}, Z::Array{Float64, 3}, RHO::Array{Float64, 3}; |
34 | 34 | refMod="AVG", lengthUnit="m", rhoTol=1e-9, Topo=[], outName="Bouguer", printing=true) |
35 | 35 |
|
36 | 36 | ## check input |
|
0 commit comments