martibosch / pylandstats-swiss-forests

Analysis with PyLandStats of the evolution of the Swiss forests for the YoMos 2020 workshop

Home Page:https://www.yomos.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub license Binder

PyLandStats Swiss forests

Analysis with PyLandStats of forest evolution in the Swiss cantons of Bern, Fribourg, Neuchatel and Vaud.

This repository is part of the YoMos 2020 workshop.

Instructions to execute

Option 1: via MyBinder

Click the badge below, which will use MyBinder to launch a server with a Jupyter executable environment:

Binder

Option 2: locally

  1. If you do not have conda in your computer, download and install it.

  2. Clone the repository and change directory to the repository's root:

git clone https://github.com/martibosch/pylandstats-swiss-forests
cd pylandstats-swiss-forests
  1. Create the environment and activate it:
conda env create -f environment.yml
# the above command creates a conda environment named `pylandstats-swiss-forests`
conda activate pylandstats-swiss-forests
  1. Register the IPython kernel of the pylandstats-swiss-forests environment:
python -m ipykernel install --user --name pylandstats-swiss-forests --display-name \
    "Python (pylandstats-swiss-forests)"
  1. You can test that the installation worked by running the following command:
python -c 'import pylandstats as pls ;  pls.Landscape("data/raw/AS18_17.tif") ; print("OK")'
  1. Run a local jupyter notebook server and you can now exectue the notebooks of this repository:
jupyter-notebook --notebook-dir=notebooks

Acknowledgements

About

Analysis with PyLandStats of the evolution of the Swiss forests for the YoMos 2020 workshop

https://www.yomos.org

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 98.7%Language:Python 1.0%Language:Makefile 0.3%Language:Shell 0.0%