/OpenNightLights

Collection of tools and training materials for exploring the open Nighttime Lights repository

Primary LanguageJupyter NotebookCreative Commons Attribution 4.0 InternationalCC-BY-4.0

OpenNightLights

Collection of open tools and training materials for using Nighttime Lights in high resolution measures of sustainable development

setup for using tutorial

this tutorial uses conda package manager

  1. make sure conda is installed on your machine
  2. clone this repo
  3. from root directory of this repo (i.e. where this file is located), create conda env using the existing environment.yml file, from CLI: conda env create --prefix ./venv -f environment.yml

for building and maintaining the site using Jupyter book:

  • Make sure onl/_config.yml and onl/_toc.yml are updated to include all files being published

To build from root directory: jupyter-book build onl

You can view this build locally (it is not yet published) by opening ./_build/html/index.html in your browser. Execute jupyter-book build onl to refresh.

To publish book to Github pages or to update the published content, (from root directory): ghp-import -n -p -f onl/_build/html

This will push content to the live link at: https://worldbank.github.io/OpenNightLights/welcome.html

Private repo status and Google Colab

Note: as long as this repo is not publicly accessible, users will not be able to access the notebooks in Colab, a popular platform (a temporary solution was developed for the Geo4Dev conference, but it is not viable long-term). The published content will be viewable by anyone and the notebooks can be downloaded and executed locally however.

Shield: CC BY 4.0

This work is licensed under a Creative Commons Attribution 4.0 International License.

CC BY 4.0