geolime.operations.grid

Classes:

BlockModel(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:

check_grid_above_surf(bm, surface, …)

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

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_xy_to_arr2d(bm[, attribute])

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

extend_grid_2d(bm, extension)

Extends a regular 2d bm with a given extension.

fill_missing_x_y(bm)

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.

guess_dx_dy(x_array[, y_array, z_array])

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

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).

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.