demGrid

hygra.calculations.demGrid(dempath, discr, range_x, range_y, range_z, shape='rect', inner_cut_radi=0, outer_cut_radi=0, cut_center=[0, 0])[source]

Create Grid based on flat topography or a supplied DEM

Parameters:
  • dempath (str) – Path to DEM file. So far only ASCII-format is supported. For no DEM to be used (=flat topography) set dempath to “flat”.

  • discr (array (3 items)) – Discretization [x, y, z] of demgrid in [m].

  • range_x (array (2 items)) – Coordinates of output grid domain in X direction. [xmin, xmax].

  • range_y (array (2 items)) – Coordinates of output grid domain in Y direction. [ymin, ymax].

  • range_z (int or array (2 items)) – Coordinates of output grid domain in Z direction. [zmin, zmax]. If a DEM file is supplied and used, set range_z to absolute extent below surface (single integer or float).

  • shape (string) – Defines the shape of the grid to be created. Options are “rect” for rectangular and “circ” for circular. Default is “rect”.

  • inner_cut_radi (float) – Radius in [m] for the inner cut-out circle. Given value will still be included.

  • outer_cut_radi (float) – Radius in [m] for the outer cut-out circle. Given value will already be cut out (excluded).

  • cut_center (array (2 items)) – [x, y] giving the center of the cutout.

Returns:

  • Pandas.DataFrame()

  • Containing columns (x,y,z,nlayer).

  • describ columns…