Materials to reproduce the article:
Bosch M., Jaligot R., Chenal J. 2020. "Spatiotemporal patterns of urbanization in three Swiss urban agglomerations: insights from landscape metrics, growth modes and fractal analysis". Landscape ecology. 10.1007/s10980-020-00985-y
Click the badge below, which will use MyBinder to launch a server with a Jupyter executable environment:
- Clone the repository and change directory to the repository's root:
git clone https://github.com/martibosch/swiss-urbanization
cd swiss-urbanization- Create the environment (this requires conda) and activate it:
conda env create --name swiss-urbanization -f environment.yml
# the above command creates a conda environment named `swiss-urbanization`
conda activate swiss-urbanization- Register the IPython kernel of the
swiss-urbanizationenvironment
python -m ipykernel install --user --name swiss-urbanization --display-name "Python (swiss-urbanization)"- Now you might use
maketo generate all the figures in the directoryreports/figuresas in:
make figuresor instead launch Jupyter as in:
jupyter-notebookand generate the figures interactively by executing the notebooks of the notebooks directory.
The landscape_plots.pdf figure cannot be reproduced with the current environment (see the file environment.yml) because of the incompatibility between the basemap installed from conda-forge and pyproj 2.0.
Project based on the cookiecutter data science project template. #cookiecutterdatascience
