{ "cells": [ { "cell_type": "markdown", "metadata": { "vscode": { "languageId": "plaintext" } }, "source": [ "# Datasets accessible with `DownClim`" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`DownClim` is designed to be a simple and easy-to-use tool for downloading climate datasets. \n", "\n", "In this page, we provide a brief description of all the datasets that are accessible with `DownClim`, as well as a short example of how to download them." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First define the areas of interest (AOI) we want to work on." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from __future__ import annotations\n", "\n", "import ee\n", "\n", "from downclim.aoi import get_aoi\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "aoi1 = get_aoi(\"Vanuatu\") # AOI by name, from GADM\n", "aoi2 = get_aoi((10, 10, 20, 20, \"box\")) # AOI by coordinates, associated with a name\n", "aois = [aoi1, aoi2]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Dataset on Google Earth Engine" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`DownClim` uses [Google Earth Engine (GEE)](https://earthengine.google.com/) to access and download some climate datasets.\n", "\n", "In particular, we use it to download [CHIRPS](#chirps-dataset) and [GSHTD](#gshtd-dataset) datasets." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "```{warning}\n", "Products hosted on Earth Engine now require authentication with a google account AND to have an Earth Engine project. Under certain conditions (among which academic projects), the use of the service remains free.\n", "\n", "Check instructions [here](https://developers.google.com/earth-engine)\n", "```\n", "\n", "You first need (only the first time on your machine) to authenticate and follow the instructions." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Then you need to have an Earth Engine project. You can create one and manage your projects [here](https://console.cloud.google.com/earth-engine/welcome). Having a project is free for non profit use. Full information can be found [here](https://developers.google.com/earth-engine/guides/transition_to_cloud_projects?hl=fr).\n", "\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "hide-input" ] }, "outputs": [], "source": [ "your_ee_project_id = \"downclim\"" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
To authorize access needed by Earth Engine, open the following\n", " URL in a web browser and follow the instructions:
\n", " \n", "The authorization workflow will generate a code, which you should paste in the box below.
\n", " " ], "text/plain": [ "