[ ]:
!pip install pywapor --quiet

Passwords

Below is an overview of the accounts needed to download different products. Whenever pywapor needs a username, password or access token, it will ask for it and store them for a next time. In this notebook we set up all the passwords, so its not necessary anymore to enter them during runtime.

First we import some functions and define a folder in which to save our log file.

[3]:
from pywapor.general.logger import adjust_logger
from pywapor.collect.accounts import setup

folder = r"/Users/hmcoerver/Local/passwords_notebook"
adjust_logger(True, folder, "INFO")

NASA

Used for MODIS, SRTM, CHIRPS and MERRA2 data.

  • First create an account at https://urs.earthdata.nasa.gov.

  • Make sure to accept the terms of use: “Applications” > “Authorized Apps” > “Approve More Applications”

    • NASA GESDISC DATA ARCHIVE

    • LP DAAC OPeNDAP

[4]:
setup("NASA")
--> Testing NASA un/pw.
--> NASA un/pw working.

TERRA

Used for TERRA (VITO:PROVA-V).

[5]:
setup("TERRA")
--> Testing TERRA un/pw.
--> TERRA un/pw working.

ECMWF

Used for ERA5.

  • Create an account at https://cds.climate.copernicus.eu.

    • On your profile page, scroll to the “API key” section.

    • Accept conditions when running setup("ECMWF") for the first time.

[6]:
setup("ECMWF")
--> Testing ECMWF un/pw.
--> ECMWF un/pw working.

EARTHEXPLORER

Used for LANDSAT.

[7]:
setup("EARTHEXPLORER")
--> Testing EARTHEXPLORER un/pw.
--> EARTHEXPLORER un/pw working.

COPERNICUS_DATA_SPACE

Used for SENTINEL2 and SENTINEL3.

[8]:
setup("COPERNICUS_DATA_SPACE")
--> Testing COPERNICUS_DATA_SPACE un/pw.
--> COPERNICUS_DATA_SPACE un/pw working.

No password required

COPERNICUS (GLO30, GLO90), GEOS5 (inst3_2d_asm_Nx), GLOBCOVER (2009_V2.3_Global), STATICS (WaPOR2, WaPOR3) and VIIRSL1 (VNP02IMG).