Welcome to GeoLime๐
GeoLime๐
GeoLime is Deeplime Python Library made for scientific calculations on geological objects. Objects offer a standardization of labels and easy-to-use methods.
Install๐
It is recommended to use virtual environment when installing Python packages (e.g. through Anaconda, Virtualenvwrapper, etc.).
- Public dependencies
First, install the dependencies from the
requirements.txt
file (e.g. withpip install -r requirements.txt
).
On Windows๐
Some dependencies (GDAL, Fiona, rasterio) must be installed manually first by downloading the corresponding wheel files. Checkout https://www.lfd.uci.edu/~gohlke/pythonlibs/ to install the windows pre-compiled binaries directly. E.g.:
pip install pygeosโ0.12.0โcp38โcp38โwin_amd64.whl
pip install GDAL-3.4.1-cp38-cp38-win_amd64.whl
pip install rasterioโ1.2.10โcp38โcp38โwin_amd64.whl
pip install Fiona-1.8.21-cp38-cp38-win_amd64.whl
conda
to install them.
- Private dependency
geolime
depends onjulime
, so you need to manually install both of from the provided wheel filespip install /path/to/julime-<x.y.z>-<python>-none-<platform>.whl pip install /path/to/geolime-<x.y.z>-<python>-none-any.whl
To ensure the library is properly installed, Run in a Python console:
import geolime
geolime.__version__
# => this should print the installed geolime version
Quick Start๐
# import GeoLime in a python session
# on Windows, import rasterio before geolime
import rasterio
import geolime as geo
import matplotlib.pyplot as plt
# load a provided dataset
data = geo.datasets.load("walker_lake_sample")
# create a PointCloud out of the XYZ data
point_cloud = geo.PointCloud(
name='WalkerLake',
xyz=data[['x', 'y', 'z']]
)
# plot it on map view
point_cloud.plot_2d('Z', 'mean')
plt.show()
Refer to the documentation Guides for more practical examples of GeoLime.
Available objects๐
- Drillholes
- Surface
- Grid
- BlockModel
- GIS Object
Featured functions๐
- Import and export to csv for Drillholes
- Surface, Drillhole and Block Model miscellaneous operations and helpers
Geostatistics Toolbox๐
- Variography (experimental variography, autofitting, ...)
- Common Covariance models
- Kriging (Simple/Ordinary & Punctual/Block)
- Anamorphosis and Hermite polynoms
- Localized Uniform Conditionning
- Simple Multigaussian Kriging
Utilities๐
- Stats
- Plotting
- Math (trigonometry, distance functions, ...)