Skip to content

oi-analytics/tanzania-transport

Repository files navigation

Tanzania Transport Risk Analysis

To contain project-specific scripts and workflows, with the intention of relying on other packages or projects for core functionality.

The scripts folder contains scripts for preprocessing, analysis and postprocessing (plotting and summary statistics).

Download the Infrastructure and tanzania_flood folders from OneDrive.

Copy config.template.json to config.json and edit the paths for data and figures, for example:

{
    "data_path": "/home/<user>/projects/tanzania-transport-risk/data",
    "figures_path": "/home/<user>/projects/tanzania-transport-risk/figures"
}

Python requirements

Recommended option is to use a miniconda environment to work in for this project, relying on conda to handle some of the trickier library dependencies.

# Create a conda environment for the project
conda create --name tanzania python=3.6
activate tanzania

# Add conda-forge channel for extra packages
conda config --add channels conda-forge

# Install packages
conda install --file requirements.txt
pip install pyshp  # Required for cartopy but not otherwise automatically loaded

Other requirements

osmium-tool is handy for handling .osm.pbf files. The docs have installation/build instructions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published