Skip to main content

Simple command line tool to create geological cross-sections

Project description

Geosections (experimental)

PyPI version License: MIT Lifecycle: experimental Build: status codecov Formatting: ruff

Simple command line tool to create geological cross-sections from borehole and CPT data using .toml configuration files.

Installation

Install the latest release by:

pip install geosections

Or the latest (experimental) version of the main branch directly from GitHub using:

pip install git+https://github.com/Deltares-research/geosections.git

Usage

Every element that needs to plotted in a section is specified in a configuration .toml. Below is a simple example .toml that plots borehole data from a .parquet file and a AHN surface along a section line:

[settings] # General plot settings
column_width = 20 # Width of boreholes
fig_width = 11
fig_height = 7
grid = true

[line]
file = "my_line.shp"
crs = 28992 # Geosections uses this crs as default

[data.boreholes]
file = "my_boreholes.parquet"
max_distance_to_line = 50 # Meters

[[surface]]
file = "ahn_surface.tif"
style_kwds = { color = "r", label = "AHN surface" } # Matplotlib keyword arguments

[labels]
xlabel = "Distance (m)"
ylabel = "Depth (NAP)"

[colors]
Z = "gold"
K = "green"
V = "brown"

Next, create the cross-section by:

geosections plot my_settings.toml --save "my-section.png"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geosections-0.1.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geosections-0.1.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file geosections-0.1.3.tar.gz.

File metadata

  • Download URL: geosections-0.1.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for geosections-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bbb4426e45acc5d7b167c97e9cfe9b3415e653d38e6f749bda99ad24a97caeca
MD5 753ca131469f7bf82d49c9ae612dfdb8
BLAKE2b-256 8f3273dcd84c515c392f03f78d6fb5e96b0502efec6f2157bc3120e831e2f8a2

See more details on using hashes here.

File details

Details for the file geosections-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: geosections-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for geosections-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 986714411eefd4f31b5b34728969aa0ead4f028883a0f2782467f4a2216f53ba
MD5 ff54452cc59d8b4bad0a44bad3a3ce29
BLAKE2b-256 1d175302f838899df0245b5be45b4f590e5e65e903d295f9b6e6a2344f608817

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page