Simple parser for *.gef files. These are ASCII based files used for soil properties measurements. Compatible with Python 3.7.
Recently added the parsing of xml boreholes file, the xml parsing is still in a preliminary phase, not all the files are supported. If you find a file that doesn't work with pygef, please make an issue about it or PR :)
Latest stable version:
$ pip install pygef
Cutting-edge version (might break):
$ pip install git+https://github.com/cemsbv/pygef.git
from pygef import Cpt
# Read *.gef file
gef = Cpt("./my-gef-file.gef")
print(gef.df)
# Pandas dataframe
print(gef.df.to_pandas())
# Save to csv
gef.df.to_csv("my-file.csv")
- zid: height with respect to NAP
- type: type of the gef file (borehole or cpt)
- x: RD coordinate
- y: RD coordinate
gef.plot(classification='robertson', water_level_NAP= -1, min_thickness= 0.2, show=True)
# available classifications: robertson, been_jeffries
Install the requirements:
pip install -r requirements_docs.txt
Build the docs:
sphinx-build -b html docs public