JKI-GDM / DemoPhaseWCS

Demo for the usage of Phase Data Cube WCS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DemoPhaseWCS

This repo shows, how to query the Data Cubes provided by the JKI.

necessary Python3 packages

  • script was developed with python 3.8
  • datetime, io, requests (standard packages)
  • numpy, matplotlib
  • geopandas, rasterio
  • xmltodict, tqdm, (ipyleaflet)

files

  1. UseCase_PHASE_DataCube.ipynb -> Jupyter Notebook and main file for demonstration
  2. func_datacube_PHASE.py -> main function to query PHASE data cube
  3. func_datacube_S2.py -> main function to query Sentienel-2 data cube (restricted access)
  4. func_datacube_DWD.py -> main function to query precipitation data cube
  5. func_misc.py -> additional functions used in the notebook

credentials

If you have access to restricted data cubes, it is recommended to create a credentials.py as follows:

create a file: credentials.py

file content:

ras_user = 'your user name'
ras_pw = 'your password'
ras_host = 'host ip'

ras_cde_user = 'your user name'
ras_cde_pw = 'your password'
ras_cde_host = 'host ip'

Add this lines to your code:

# in case, your credentials.py os in another directory, uncomment the folloing two lines
# import sys
# sys.path.insert(1, '/path/to/crdentials.py')

import credentials # ---> this is the credentials.py

print(credentials.ras_user)

Output:
    your user name

About

Demo for the usage of Phase Data Cube WCS

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 97.1%Language:Python 2.9%