ESGF Node at DKRZ: https://esgf-data.dkrz.de/search/cmip6-dkrz/
download_url = 'http://esgf3.dkrz.de/thredds/fileServer/cmip6/CMIP/MPI-M/MPI-ESM1-2-HR/historical/r1i1p1f1/3hr/pr/gn/v20190710/pr_3hr_MPI-ESM1-2-HR_historical_r1i1p1f1_gn_185001010130-185412312230.nc'
Map to file path at DKRZ
file_url = download_url.replace(
"http://esgf3.dkrz.de/thredds/fileServer/cmip6/",
"/mnt/lustre02/work/ik1017/CMIP6/data/CMIP6/"
)
file_url
Get an access token from here: https://demo-phoenix.cloud.dkrz.de/
access_token = ""
import os
from rooki import operators as ops
# os.environ['ROOK_URL'] = 'http://rook.dkrz.de/wps'
# os.environ['ROOK_URL'] = 'http://demo-twitcher.cloud.dkrz.de/ows/proxy/rook'
os.environ['ROOK_URL'] = "http://demo-auth.cloud.dkrz.de/rook"
os.environ['ROOK_MODE'] = 'async'
os.environ['ACCESS_TOKEN'] = access_token
wf = ops.Subset(
ops.Input(
'tas', [file_url]
),
time="1850-01-01/1850-01-31",
)
resp = wf.orchestrate()
resp.ok
ops.rooki.url
resp.download_urls()
from IPython.display import Image
Image(resp.provenance_image())