geolime.operations

Classes:

BlockModel(data, metadata)

Drillholes(data, metadata)

Polygon(data, metadata)

Proj(projparams, preserve_units, **kwargs)

Performs cartographic transformations.

SortingRank(value)

An enumeration.

StatKind(value)

An enumeration.

Surface(data, mesh, metadata)

Data:

List

The central part of internal API.

Functions:

anisotropic_distance([a])

Anisotropic distance between two points according to the anisotropy matrix a.

bounding_polygon_from_points(points_df, crs)

Compute bouding concave polygon of a set of points.

bounding_polygon_from_sub_points(sub_points_gdf)

Compute bouding concave polygon of a subset of points.

cell_declustering(drillholes, size_x, …)

Compute declustered weights by Cell Declustering algorithm from C.

check_grid_above_surf(bm, surface, …)

Write in a dataframe for each block if above or under a surface

compositing(drillholes, grade_list[, …])

Compositing regularizes data spacing along a drillhole from top to bottom.

compositing_per_dh(dh, grade_list[, …])

Compositing function for a single drillhole.

coord_to_lat_lon(bm[, proj_in])

Take x,y,z column of dataframe and convert x/y to latitude/longitude in two new columns proj_in by default is Lambert 93 out_proj (espg:4326) corresponds to lat/lon official reference

create_mplcontour_from_grid(bm, column[, …])

Creates a matplotlib contour from a bm and a property.

df_to_gdf(df[, x_col, y_col, crs])

Converts a DataFrame to a GeoDataFrame

df_xy_to_arr2d(bm[, attribute])

Take x,y,z column of bm to make a 2D array, with attribute as values.

distance_matrix(x1, x2[, distance])

Computes the distance matrix of two sets of points in the Euclidean space according to a distance.

drape_drillholes_to_surface(surface, drillholes)

Compute the true elevation of drillholes given coordinates and the corresponding surface.

extend_grid_2d(bm, extension)

Extends a regular 2d bm with a given extension.

extract_dxf_contour_to_mpl(dxf)

Create a mpl contour of a dxf surface

fill_missing_x_y(bm)

find_duplicate_dm(drillholes[, max_distance])

Seek for the duplicates in drillhole - only in (x,y).

flatten_grid(bm[, sorting_type])

Flatten a DataFrame that has many rows with same (x,y).

gdf_from_image(image, pixel_resolution, origin)

Transform image (numpy 2D array) into a geopandas dataframe.

gdf_to_df(gdf[, copy])

Converts a DataFrame to a GeoDataFrame

guess_dx_dy(x_array[, y_array, z_array])

Return the dx,dy of a grid guess from the x,y values

init_regular_bhid(start_from, end_to, …[, …])

Regularize from / to columns of a single drillhole dataframe based on an origin, an end, acomposite length and an eventual elevation of reference.

linear_desurveying(drillholes)

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

moving_window_declus(drillholes, diam_x, …)

Compute declustered weights by Moving Window algorithm.

polygon_from_bm(bm, column, crs[, classes, …])

Creates Polygon object from a 3D BlockModel, a property, a CRS, and list of thresholds (ie: cut off grades).

select_points_inside_polygon(polygon, points)

Filters points in 2D and keep only the one inside the given polygon.

transform(p1, p2, x, y[, z, tt, radians, …])

New in version 2.1.2: skip_equivalent

vertical_intersection(x, y, surface)

Compute the z coordinates of the vertical intersection between a Trimesh triangulated mesh and a (x,y) coordinates.

which_in_ball(x[, p, r, distance, scales])

Function to return the indexes of the points which are in a (closed) ball in the Euclidean space.