gempy.core.grid_modules.grid_types.Sections

class gempy.core.grid_modules.grid_types.Sections(regular_grid=None, z_ext=None, section_dict=None)[source]

Object that creates a grid of cross sections between two points.

Parameters
  • regular_grid – Model.grid.regular_grid

  • section_dict – {‘section name’: ([p1_x, p1_y], [p2_x, p2_y], [xyres, zres])}

Examples using Sections

Methods

__init__([regular_grid, z_ext, section_dict])

Initialize self.

calculate_all_distances()

calculate_line_coordinates_2points(p1, p2, res)

compute_section_coordinates()

distance_2_points(p1, p2)

generate_axis_coord()

get_section_args(section_name)

get_section_grid(section_name)

get_section_params()

interpolate_zvals_at_xy(xy, topography[, method])

Interpolates DEM values on a defined section

set_sections(section_dict[, regular_grid, z_ext])

show()

__init__(regular_grid=None, z_ext=None, section_dict=None)[source]

Initialize self. See help(type(self)) for accurate signature.

static interpolate_zvals_at_xy(xy, topography, method='interp2d')[source]

Interpolates DEM values on a defined section

Parameters
  • xy – x (EW) and y (NS) coordinates of the profile

  • topography (gempy.core.grid_modules.topography.Topography) –

  • method – interpolation method, ‘interp2d’ for cubic scipy.interpolate.interp2d ‘spline’ for scipy.interpolate.RectBivariateSpline

Returns

z values, i.e. topography along the profile

Return type

numpy.ndarray