In [1]:
from birdy import WPSClient
wps = WPSClient('https://bovec.dkrz.de/ows/proxy/pelican')
# wps = WPSClient('http://localhost:5000/wps')
help(wps.pelican_subset)
In [2]:
from owslib_esgfwps import Variable, Domain, Dimension
In [3]:
# data files we want to process
files = [
# OpenDAP, CORDEX EUR-44, tasmax, climate index SU (summer days)
'http://opendap.knmi.nl/knmi/thredds/dodsC/CLIPC/gerics/climatesignalmaps/EUR-44/tasmax/su_python-2-7-6_GERICS_ens-multiModel-climatesignalmap-rcp85-EUR-44_yr_20700101-20991231_1971-2000.nc',
]
In [4]:
su = Variable(uri=files[0], var_name='su')
In [5]:
domain = Domain({'time': Dimension(0, 1, crs='indices')}, )
In [6]:
from owslib_esgfwps import Variables, Domains
resp = wps.pelican_subset(variable=Variables([su]), domain=Domains([domain]))
In [7]:
resp.get(asobj=False)
In [11]:
out = resp.get(asobj=True)
In [12]:
out.preview