Skip to content

Object Creation API🍋

create_drillholes(name, collar, assays, survey=None, method=DesurveyingMethod.TANGENTIAL, dip_convention=DipDownward.NEGATIVE, name_dictionary=Project().attributes_mapping) 🍋

Create GeoLime drillholes from Collar, Survey and Assay files.

Parameters:

Name Type Description Default
name str

name of Drillholes object to create.

required
collar pd.DataFrame

DataFrame of collar file.

required
assays Union[List[pd.DataFrame], pd.DataFrame]

DataFrame(s) of intervals file (assay, geology, lithology, etc...).

required
survey Optional[pd.DataFrame]

DataFrame of survey file.

None
method DesurveyingMethod

Desurveying method.

DesurveyingMethod.TANGENTIAL
dip_convention DipDownward

Convention of dip downward angle sign.

DipDownward.NEGATIVE
name_dictionary Dict[str, str]

mapping between column names and attributes. See Project().attributes_mapping for default attributes mapping.

Project().attributes_mapping

Returns:

Type Description
Drillholes

GeoLime Drillholes.

Raises:

Type Description
NotImplementedError

Desurveying method not in the available methods.

create_drillholes_from_dataframe(name, df, name_dictionary=Project().attributes_mapping) 🍋

Create Drillholes from a Pandas DataFrame.

Parameters:

Name Type Description Default
name str

Name of created Drillholes.

required
df pd.DataFrame

Ready to conversion DataFrame.

required
name_dictionary Dict[str, str]

Correspondence table mapping names to attributes.

Project().attributes_mapping

Returns:

Type Description
Drillholes

Drillholes

create_gis_object_from_file(name, file_path) 🍋

Create GeoLime GIS object from a shp, geojson or gpkg file. The file loading is delegated to GeoPandas: see geopandas.read_file() for more information.

Parameters:

Name Type Description Default
name str

name of the GISObject to create.

required
file_path str

path to the shp, geojson or gpkg file.

required

Returns:

Type Description
GISObject

GeoLime GISObject.