gempy.core.data.Topography¶
- class gempy.core.data.Topography(regular_grid: RegularGrid, values_2d: ndarray | None = None)[source]¶
Object to include topography in the model.
Notes
This always assumes that the topography we pass fits perfectly the extent
Methods
__init__(regular_grid[, values_2d])from_arrays(regular_grid, x_coordinates, ...)Creates a topography object from a subsurface structured data object
from_unstructured_mesh(regular_grid, ...)Creates a topography object from an unstructured mesh of XYZ vertices.
load(path)load_from_saved(*args, **kwargs)load_random_hills(**kwargs)resize_topo()save(path)set_values(values_2d)General method to set topography
Attributes
extentregular_grid_resolutionThis method takes a topography grid of the same extent as the regular grid and creates a mask of voxels
xy- classmethod from_subsurface_structured_data(structured_data: subsurface.StructuredData, regular_grid: RegularGrid)[source]¶
Creates a topography object from a subsurface structured data object
- Parameters:
structured_data (subsurface.StructuredData) – Structured data object
- Returns:
gempy.core.grid_modules.topography.Topography
- classmethod from_unstructured_mesh(regular_grid, xyz_vertices)[source]¶
Creates a topography object from an unstructured mesh of XYZ vertices.
- Parameters:
regular_grid (RegularGrid) – The regular grid object.
xyz_vertices (numpy.ndarray) – Array of XYZ vertices of the unstructured mesh.
- Returns:
gempy.core.grid_modules.topography.Topography
- set_values(values_2d: ndarray)[source]¶
General method to set topography
- Parameters:
values_2d (numpy.ndarray[float,float, 3]) – array with the XYZ values in 2D
- Returns:
gempy.core.grid_modules.topography.Topography
- property topography_mask¶
This method takes a topography grid of the same extent as the regular grid and creates a mask of voxels