Object Creation API🍋
create_drillholes(name, collar, assays, survey=None, name_dict={'X': 'X', 'Y': 'Y', 'Z': 'Z', 'X_BEGIN': 'X_B', 'Y_BEGIN': 'Y_B', 'Z_BEGIN': 'Z_B', 'X_MID': 'X_M', 'Y_MID': 'Y_M', 'Z_MID': 'Z_M', 'X_END': 'X_E', 'Y_END': 'Y_E', 'Z_END': 'Z_E', 'DEPTH': 'DEPTH', 'FROM': 'FROM', 'TO': 'TO', 'HOLEID': 'HOLEID', 'AZIMUTH': 'AZIMUTH', 'DIP': 'DIP', 'GEOMETRY': 'geometry'})
🍋
Create GeoLime drillholes from Collar, Survey and Assay files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str |
name of Drillholes object to create. |
required |
collar |
DataFrame |
DataFrame of collar file. |
required |
assays |
Union[List[pandas.core.frame.DataFrame], pandas.core.frame.DataFrame] |
DataFrame(s) of intervals file (assay, geology, lithology, etc...). |
required |
survey |
DataFrame |
DataFrame of survey file. |
None |
name_dict |
Dict[str, str] |
mapping between column names and attributes. See Project().attributes_mapping for default attributes mapping. |
{'X': 'X', 'Y': 'Y', 'Z': 'Z', 'X_BEGIN': 'X_B', 'Y_BEGIN': 'Y_B', 'Z_BEGIN': 'Z_B', 'X_MID': 'X_M', 'Y_MID': 'Y_M', 'Z_MID': 'Z_M', 'X_END': 'X_E', 'Y_END': 'Y_E', 'Z_END': 'Z_E', 'DEPTH': 'DEPTH', 'FROM': 'FROM', 'TO': 'TO', 'HOLEID': 'HOLEID', 'AZIMUTH': 'AZIMUTH', 'DIP': 'DIP', 'GEOMETRY': 'geometry'} |
Returns:
Type | Description |
---|---|
Drillholes |
GeoLime Drillholes. |
create_drillholes_from_dataframe(name, df)
🍋
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 |
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. |