Skip to main content

GEOP4TH (for GEOspatial Python Pre-Processing Platform for Trajectories in Hydro-socio-ecosystems) is a collection of generic, format-agnostic, python tools (geobricks) designed to easily standardize, manipulate and visualize space-time data.

Project description

GEOP4TH

version Documentation

preview

Presentation

GEOP4TH /ʤiɒpɑːθ/ jee-uh-pa-th (for GEOspatial Python Pre-Processing Platform for Trajectories in Hydro-socio-ecosystems) is a collection of generic, format-agnostic, python tools (geobricks) designed to easily standardize, manipulate and visualize space-time data.

Besides, these geobricks are designed to be assembled into complete pre-processing workflows for specific data or to specific models. Such workflows can be collaboratively developped and shared within GEOP4TH. So far, GEOP4TH includes the workflows for pre-processing some of the most common French datasets (SIM2, DRIAS/EXPLORE2, BNPE, IGN...), as well as the workflows to format inputs for CWatM. Collaborative developments are welcome :)

In the end, GEOP4TH intends to help working on hydro-socio-ecosystems trajectories and diagnostics.

URL of the main source: https://gitlab.com/AlexandreCoche/geop4th

abstract{width=750}

Documentation

The most up-to-date documentation can be found online at:

Note Additionnaly, this documentation can be accessed offline through the public/index.html file on the doc branch

Getting started

Note
Latest quickstart instructions are described in the Documentation with more details.

Installation requirements

To install the python environment required to use this module, it is necessary to install an Anaconda distribution (such as Miniconda3).

Tip
For a start, we also advise using a Git Management tool (such as GitHub Desktop).

Retrieve this remote git folder to a local machine

To clone this git folder using for example GitHub Desktop, you can:

  1. Go to File > Clone repository...
  2. Got to URL tab and enter https://gitlab.com/AlexandreCoche/geop4th.git
    • the local path should end with geop4th

Python environment

GEOP4TH requires some common open-source python packages (xarray, rioxarray, rasterio, numpy, pandas, geopandas, shapely, fiona, pysheds, plotly, matplotlib).

Installing the python environment can be done in the conda console (admin mode advised) by entering:

# If geop4th has been cloned to another disk than C:, it is necessary to enter the name of the disk first
# d: (for example)
cd "path/to/geop4th/install"
conda env create -f environment.yml -n geoenv

Set up

  1. Open conda prompt and activate environment:
conda activate geoenv
  1. Install and open an IDE such as Spyder or Jupyter Notebook:
conda install spyder -c conda-forge

spyder
  1. Once in the IDE, the parent folder (the root folder containing geop4th folder) should be added to the PYTHONPATH

  2. Then, the main modules can be imported as follow:

# Basics elements
from geop4th import (
    geobricks as geo,
    download_fr as dl,
    trajplot as tjp,
    )
	
# or complete workflows
from geop4th import (
    standardize_fr as stz,
    cwatm,
    )

Docker image

A Docker image of 0.10.1 version is available here: https://hub.docker.com/r/alexandrecoche/geop4th.

Support

alexandre.co@hotmail.fr

Project status

Currently under developpement.

Roadmap

  • generalize data paths in trajplot and document it
  • document all the functions
  • implement logging everywhere and add a workflow log
  • implement a comparison function
  • for contributing, test and resolve the installation procedure with pip
  • clean code (functions in geohydroconvert #%% EXTRACTIONS, georef in double, clean comments, restructure SIM2_tools and advanced_visualization into geohydroconvert...)

Authorship & contributions

Contribute

See the CONTRIBUTING.md file

Authors and acknowledgment

This work has been created by Alexandre Kenshilik Coche, with the help of the following first contributors: The design of the trajplot figures was conceived with the help of Laurent Longuevergne, Elias Ganivet and Veronique Van Tilbeurgh.
Part of the functions to handle SIM2 data were conceived with the help of Ronan Abhervé and some code parts from Loïc Duffar's scripts.
Packing functions were based on James Hiebert's work. Alexandre Gauvain shared insightful ideas on how to structure the gitlab and the ReadTheDocs documentation. Bastien Boivin and Pape Saara Ngom provided helpful advice to improve the installation procedure. Damien Belvèze and Martin Komlavi Amouzou brought a significant help and crucial advice on software development good practices, replicability, testing and containerization. Programmer web communities brought a considerable help to this work.

To see a more detailled and up-to-date view on authors and contributors, please refer to the codemeta.json file.

Funding

This work has been partly funded by PAGAIE ANR research project (EOTP776392) and the "Ressources en Eau du futur" Rennes Métropole Chaire (19JA305-01D).

License

GNU GPLv3 see the COPYING file.


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

geop4th-0.10.2rc0.tar.gz (205.8 kB view details)

Uploaded Source

Built Distribution

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

geop4th-0.10.2rc0-py3-none-any.whl (198.6 kB view details)

Uploaded Python 3

File details

Details for the file geop4th-0.10.2rc0.tar.gz.

File metadata

  • Download URL: geop4th-0.10.2rc0.tar.gz
  • Upload date:
  • Size: 205.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for geop4th-0.10.2rc0.tar.gz
Algorithm Hash digest
SHA256 d2bc379118d62a3b59cd8f2d6841a7e2324c8357c81d2902b871951348e97a84
MD5 e26384f10eddd1a56c27a84732437069
BLAKE2b-256 c2133a1a66e1606365f4e92bc89bbae28b3285c4b82ded5c6ac43e40c7bc34fb

See more details on using hashes here.

File details

Details for the file geop4th-0.10.2rc0-py3-none-any.whl.

File metadata

  • Download URL: geop4th-0.10.2rc0-py3-none-any.whl
  • Upload date:
  • Size: 198.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for geop4th-0.10.2rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 21f7cfd5b92955d3d04e947ec956176b4ef4eeca7ba753ec5ab021a2c8b86264
MD5 d8a200173587aeffd3873ade6ef1b345
BLAKE2b-256 6172ff9162e7360b02a0b3ce3efa2e324c4538e182cc14d6f8d0dff3cf1de443

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