geolime.objects

Classes:

ABCMeta(name, bases, namespace, **kwargs)

Metaclass for defining Abstract Base Classes (ABCs).

BlockModel(data, metadata)

Drillholes(data, metadata)

GeometricalObject(data, metadata)

Parent class of every object

Grid(metadata, convention)

Grid2D(metadata)

Grid3D(metadata)

Polygon(data, metadata)

Project(*args, **kwargs)

Project Class Parameters that a constant over a “project” such as coordinate systen,unit system or z direction.

ProjectMeta

MetaClass to ensure only one instance of Project in a script.

Surface(data, mesh, metadata)

Data:

Callable

Callable type; Callable[[int], str] is a function of (int) -> str.

List

The central part of internal API.

Functions:

abstractmethod(funcobj)

A decorator indicating abstract methods.

create_grid_2d(origin, n_dim, cell_size[, angle])

Create a 2D grid from mesh parameters.

create_grid_3d(origin, n_dim, cell_size[, angle])

Create a 3D grid from mesh parameters.

grid_2d_from_bounds(origin, extent, cell_size)

Create a 2D grid from mesh bounds and cell size.

grid_3d_from_bounds(origin, extent, cell_size)

Create a 3D grid from mesh bounds and cell size.

import_drillholes(collar_df[, survey_df])

Create a geolime object Drillholes from different csv

linear_desurveying(drillholes)

Take assay and collar dataframes to compute true location of points in the drillhole

polygon_from_file(file)

Create polygon object from file 2 types of files are accepted : - Shapefile .shp - GeoJSON .geojson

polygon_to_geojson(polygon, output_name)

Export Polygon to GeoJSON

polygon_to_shp(polygon, output_name)

Export Polygon to shapefile

reduce(function, sequence[, initial])

Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value.

rot_zyx(angles[, deg, clockwise])

Example of a convention (RGeoStats)

surface_from_csv(csv_file)

Create a surface object from a csv (table) file

surface_from_dataframe(dataframe)

Create a surface object from a pandas dataframe

surface_from_dxf(dxf)

Create a surface object from a dxf file

surface_from_stl(stl)

Create a surface object from a stl (cad) file

surface_to_stl(surface, file_name)

Export a geolime surface object to a stl file