gravityGrid

class hygra.gravity_grid.gravityGrid(dempath, sensor_coords, grid_discr, grid_domain_x, grid_domain_y, grid_domain_vertical, inner_radius=0, outer_radius='auto', grid_origin=False, grid_shape='rect', verbose=False)[source]

Bases: object

Class of a gravityGrid

Parameters:
  • dempath (str) – filepath of the DEM to use. If no DEM is availlable, use value “flat” (default).

  • sensor_coords (list) – [sensor_x, sensor_y, sensor_z]. Coordinates of the gravity sensor.

  • grid_discr (list) – [res_x, res_y, res_z] Resolution of the final gravity component grid.

  • grid_domain_x (list) – [x_min, x_max]. Specifies the x-extent of the grid.

  • grid_domain_y (list) – [y_min, y_max]. Specifies the y-extent of the grid.

  • grid_domain_vertical (list) – [z_min, z_max]. Specifies the z-extent of the grid.

  • grid_origin (list) – [x, y]. Specifies the x and y coordinates of the grid. If not supplied, default to sensor coordinates.

  • grid_shape (str) – Shape of the gravity grid. Default is “rect” for rectangular. Other option is “circle” for a circular grid.

  • verbose (str) – Should information be displayed (default = False).

Notes

Methods Summary

calc_response(mass_change_ts)

Calculate the gravimetric resonse of a mass change (soil moisture) time series

correct_pillar_cuboid(extent_x, extent_y, ...)

Exclude cuboid shaped body from gravity component grid

correct_pillar_cylinder(pillar_radius, ...)

Exclude cylinder shaped body from gravity component grid

create_gcompGrid([method])

Create DEM grid and gravity component grid of supplied dimensions and properties

distance_of_signal(wsc_vertical[, distances])

effect_cylinder_plate(change, radius, extent_z)

Calculate effect of a cylinder plate with limited radius.

plot([data, orientation, ...])

return_grid()

Returns the gravity component grid

summary()

topoFactor()

Calculate the topographic conversion factor of the gravity component grid

Methods Documentation

calc_response(mass_change_ts)[source]

Calculate the gravimetric resonse of a mass change (soil moisture) time series

Parameters:

mass_change_ts (Pandas.DataFrame()) – 1D: [timestamps, z, value] or 3D: [timestamps, x, y, z, value]. Timestamps can be either dates or just integers. Value has to be the change in [%] (e.g. for soil moisture 0.23).

correct_pillar_cuboid(extent_x, extent_y, extent_z)[source]

Exclude cuboid shaped body from gravity component grid

correct_pillar_cylinder(pillar_radius, pillar_center, extent_z)[source]

Exclude cylinder shaped body from gravity component grid

create_gcompGrid(method='standard')[source]

Create DEM grid and gravity component grid of supplied dimensions and properties

distance_of_signal(wsc_vertical, distances=[10, 100, 250, 500, 750, 1000, 1500, 2500, 5000, 10000])[source]
effect_cylinder_plate(change, radius, extent_z)[source]

Calculate effect of a cylinder plate with limited radius.

Parameters:
  • change (int) – Change of water storage in [mm].

  • radius (int) – Limit of cylinder plate (around sensor) in [m].

  • extent_z (list) – z-values defining (vertical) start and end of cylinder plate in [m].

Notes

Change in [mm] will be converted to [%] considering the absolute z-extent.

plot(data='gcomp', orientation='horizontal', intersect_horizontal=1, intersect_vertical='auto', filepath='', verbose=False)[source]
return_grid()[source]

Returns the gravity component grid

summary()[source]
topoFactor()[source]

Calculate the topographic conversion factor of the gravity component grid