gcompGrid
- hygra.calculations.gcompGrid(demgrid, sensor, discr, gravityMethod='standard')[source]
Create a grid of gravity components
Considered is a mass change per grid cell of 100%. This has to be taken into account when multiplying with mass change values, e.g. WSC Soil moisture values thus have to be used as 0.7 and NOT percent (70%)!
- Parameters:
demgrid (Pandas.DataFrame()) – 3d grid [x, y, z].
sensor (array (3 items)) – Coordinates of the gravity sensor [x, y, z].
discr (array (3 items)) – Discretization [x, y, z] of demgrid in [m].
gravityMethod (str) – Options are “standard”, “pointmass”, “macmillan”, “forsberg”. See Details.
- Return type:
Pandas.DataFrame() with column ‘value’ containing the gravity components.
Notes
The gravity components are in 100% mass change for each cell. The unit of the gravity component is [nm/s²].
Method: for the standard method, grid points are calculated with different gravity formulas, depending on their distance to the gravity sensor location. For a rough estimate, the following is valid: distance < 50 m: gravity_forsberg() is used. distance > 50 & < 1000 m: gravity_macmillan() is used. distance > 1000 m: gravity_pointmass() is used.
Convention: for error-less joining, averaging, binning, etc. are all X, Y, Z values rounded to 2 decimal placesself. This implies the unit of [m] in order to get [cm] precise coordinates.