tobiscode / disstans

Package repository for the Decomposition and Inference of Sources through Spatiotemporal Analysis of Network Signals (DISSTANS) toolbox.
https://tobiscode.github.io/disstans/
GNU General Public License v3.0
22 stars 7 forks source link

The DISSTANS Python package

Welcome to the package repository for the Decomposition and Inference of Sources through Spatiotemporal Analysis of Network Signals (DISSTANS) toolbox.

With DISSTANS, you can:

All from within your Python shell, and everything in standard Python object-oriented programming style, allowing you to easily subclass existing code to suit your individual needs.

Documentation

A peer-reviewed study has been published (see Using and citing this work below) that explains the concept, inner workings, goals, and successes of DISSTANS in detail. You can find the final version here, and the accepted preprint here.

Furthermore, DISSTANS contains full code annotation, an API documentation, as well as tutorials and real-data examples that show the usage of the package.

The documentation can be found in the docs/ folder. It is hosted on GitHub publicly at tobiscode.github.io/disstans, but you can also read it locally, e.g., by running python -m http.server 8080 --bind 127.0.0.1 from with the documentation folder and then opening a browser.

Installation

The full installation instructions, including necessary prerequisites, can be found in the documentation.

If you're happy with a minimal installation (no local documentation, not suited for modifications, without experimental newest commits), then the short answer is:

# download the environment file
wget https://raw.githubusercontent.com/tobiscode/disstans/main/environment.yml
# create the environment, including all prerequisites
conda env create -f environment.yml
# activate the environment
conda activate disstans
# install DISSTANS from the Python Package Index (PyPI)
pip install disstans

Updating the code is then just:

pip install --upgrade disstans

Using and citing this work

Please note that this work is under a GPL-3.0 License.

If you're using this code or any parts of it, please cite the following study:

Köhne, T., Riel, B., & Simons, M. (2023). Decomposition and Inference of Sources through Spatiotemporal Analysis of Network Signals: The DISSTANS Python package. Computers & Geosciences, 170, 105247. DOI: 10.1016/j.cageo.2022.105247

You can find the accepted preprint here.

A poster introducing the code was presented at the AGU Fall Meeting 2021, you can find it here.

Acknowledgments

This code would not be possible without the work of others, such as:

Reporting bugs and getting involved

If you find a bug or have a question about the code, please raise an issue on GitHub. If you have any other comment, feedback, or suggestion, feel free to send me an email to tkoehne@caltech.edu. Similarly, if you want to contribute to any part of the code (functions, classes, documentation, examples, etc.), please send me an email - contributions of all kinds are always welcome!