pythgis

Package that provides tools to clean shp Therion output

https://github.com/robertxa/pythgis

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.9%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Package that provides tools to clean shp Therion output

Basic Info
  • Host: GitHub
  • Owner: robertxa
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 4.08 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

Python sripts to enhance Therion Shapefile outputs

Set of Python scripts to enhance Therion Shapefile outputs to be used more easylly through QGIS and Merging Maps apps.

Usage

Add altitude and easting/northing values in the attribrut tables

usage: >>> AddAltPoint(pathshp = "path_to_the_shp_folder", outputspath = "path_where_to_write_output_files")

Create a new shapefile with all the stations 3D, with their geometry as attribut table. It uses the stations3d.shp and points2d.shp built by Therion.

Before to run this script, you must build the stations3d.shp and points2d.shp with Therion.

Clean the lines and areas shapefiles

usage: >>> ThCutAreas(pathshp = "path_to_the_shp_folder", outputspath = "path_where_to_write_output_files")

Create new shapefiles of lines and areas, but with only the info inside the cave outline if the option -clip is set to on or null, except for centerlines and label lines. It uses the files outline2d.shp, lines2d.shp and areas2d.shp built by Therion.

Before to run this script, you must build the files outline2d.shp, lines2d.shp and areas2d.shp with Therion and verify the validity of their geometry.

Convert all the necessary Therion shapefile into gpkg format

usage: >>> shp2gpkg(pathshp = "path_to_the_shp_folder", outputspath = "path_where_to_write_output_files") Convert the shapefiles outline2d.shp, shots3d.shp, and walls3d.shp into the gpkg format.

Perform all enhancing in once

usage: >>> runThGIS(pathshp = "path_to_the_shp_folder", outputspath = "path_where_to_write_output_files")

Run the three scripts in once.

Licence

This script is under the GNU GPL-3.0-or-later licence.

Author

Xavier Robert (xavier.robert@ird.fr)

Citation

If used, please cite :

Robert X. (2025), pyThGIS, a Python code to clean the shp Therion output. DOI:10.5281/zenodo.15078040

DOI

Owner

  • Name: Xavier Robert
  • Login: robertxa
  • Kind: user
  • Location: Grenoble, France
  • Company: ISTerre / Université Grenoble Alpes / IRD

Earth scientist working mostly with quantitative low-temperature thermochronology and quantitative geomorphology Projects: Andes evolution; Himalayan tectonics

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Robert"
  given-names: "Xavier"
  orcid: "https://orcid.org/0000-0002-0567-7497"
title: "pyThGIS, a Python code to clean the shp Therion output"
version: 2025
doi: 10.5281/zenodo.15078040
date-released: 2025-03-24
url: "https://github.com/robertxa/pyThGIS"

GitHub Events

Total
  • Release event: 1
  • Push event: 2
  • Create event: 3
Last Year
  • Release event: 1
  • Push event: 2
  • Create event: 3