CoCliCo workbench prototype repository with tutorials & exploratory tools for Coastal Climate Core Services
Notebooks can be opened in Google Colab or in Binder . The latter uses the environment.yml
file in the main directory.
Please follow the instructions below to install the CoCliCo Workbench environment:
-
Install GitHub Desktop for your OS: https://desktop.github.com/
-
Install the Mamba Package Manager (miniforge3) for your OS: https://github.com/conda-forge/miniforge#mambaforge
-
Open a miniforge prompt (by searching "miniforge" in the task bar) and run
mamba –-version
to check if the installation was complete. -
Clone the
coclico-workbench
repo by adding ("Add" --> "clone repository" --> "URL") the URL in GitHub Desktop, you can find the URL under the green "code" button in thiscoclico-workbench
repo. Please change the local path to something like:C:\Users\***\Documents\GitHub
(where you create the GitHub folder yourself). The repo will be cloned here. -
In the miniforge prompt, change the directory to the cloned repo by running
cd C:\Users\***\Documents\GitHub\coclico-workbench\coclicodata_env
, where *** needs to be replaced to your system variables. -
This directory contains an
environment.yml
file with all the necessary packages describing the software dependencies. Create the software environment (calledcoclico
) by running the following command in the miniforge prompt (note, this will take about 10-15 minutes to run):mamba env create -f environment.yml
-
Now you can activate the environment we just created, in your miniforge prompt please run the following:
mamba activate coclico
-
You can look which environments you have installed by running:
mamba env list
. It places a star to indicate in which environment you are situated now (also indicated in front of your command line). -
In principle, mamba should have installed the pip dependencies as well. If it fails to install these, you can install the ones requiring pip in the
environment.yml
file manually by running (note list might not be complete, check against theenvironment.yml
file):pip install stactools-geoparquet-items odc-ui odc-stac odc-stats odc-algo odc-io odc-cloud[ASYNC] mapbox mapboxcli xstac
-
To check if all went well you can run
mamba list
to list all installed packages and search for, for instancemapbox
. If it is present, you can continue. -
For running jupyter notebooks and / or python scripts, we recommend to install VS Code editor: https://code.visualstudio.com/ as it offers flexibility in selecting environments, directories and python interpreters as well as offers various useful extensions all in one user interface.
-
Open VS Code and select the cloned
coclico-workbench
folder as your working directory. As a test, you can openIPCC_AR5_AR6_comparison.ipynb
in notebooks. Select your kernel (thecoclico
env) in the top right corner and run cells by pressing shift-enter. You should be able to progress through the notebook without any errors. -
Might you run into trouble with these installation guidelines, please reach out to @EtienneKras, @mathvansoest or @FlorisCalkoen for help.
-
exploratory_tools: various notebooks that dive deep into user stories with very specific needs too detailed for the CoCliCo web platform; i.e. comparisons to High-Resolution data, High-End sea level rise scenarios, etc.
-
notebooks: (DEPRECATION WARNING) various scripts that were developed in the first two years of the CoCliCo project. These scripts will be redistributed over exploratory tools and tutorials soon.
-
tutorials: short notebooks describing how to use the CoCliCo Data repository (STAC)
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
coclico
is licensed under the terms of the GNU general public license.
coclico
template was created with
cookiecutter
and and
the py-pkgs-cookiecutter
template.