In [2]:
"""Python WPS execute"""
from owslib.wps import WebProcessingService, monitorExecution
from os import system

In [3]:
import owslib
owslib.__version__ # version must be >=0.10.3


Out[3]:
'0.10.3'

In [4]:
# wps = WebProcessingService(url="http://birdhouse-lsce.extra.cea.fr:8093/wps", verbose=False)
wps = WebProcessingService(url="http://localhost:8093/wps", verbose=False)
#wps = WebProcessingService(url="https://birdhouse-lsce.extra.cea.fr:28093/wps", verbose=False,
#verify=False)

In [5]:
print wps.identification.title


Flyingpigeon

In [6]:
for process in wps.processes:
    print '%s : \t %s' % (process.identifier, process.abstract)


visualisation : 	 Just testing a nice script to visualise some variables
extractpoints : 	 Extract Timeseries for specified coordinates from grid data
segetalflora : 	 Species biodiversity of segetal flora. Imput files: variable:tas , domain: EUR-11 or EUR-44
indices_single : 	 This process calculates climate indices based on one single variable.
subset_countries : 	 This process returns only the given polygon from input netCDF files.
eobs_to_cordex : 	 downloades EOBS data in adaped CORDEX format
modelUncertainty : 	 Calculates the ensemble mean and uncertainty mask

In [16]:
td_path = 'http://webportals.ipsl.jussieu.fr/thredds/fileServer/EUROCORDEX/extremoscope_FRA_20151009/polygons/TG/yr/rcp45/13/'

file1 = 'TG_rcp45_CNRM-CERFACS-CNRM-CM5_RCA4_1971-2100.nc'
file2 = 'TG_rcp45_CNRM-CM5_CCLM4-8-17_1971-2100.nc'
file3 = 'TG_rcp45_CNRM-CM5_CNRM-ALADIN53_1971-2100.nc'

In [17]:
from os.path import join

execute = wps.execute(
    identifier="visualisation", #indices_clipping",
    inputs=[
       ("resource",join(td_path, file1)),
       ("resource",join(td_path, file2)),
       ("resource",join(td_path, file3)),
       # ("variable" , "TG"), 
       ])

monitorExecution(execute, sleepSecs=5)

print execute.getStatus()

for o in execute.processOutputs:
    print o.reference


ProcessSucceeded
http://birdhouse-lsce.extra.cea.fr:8090/wpsoutputs/flyingpigeon/plotout_spagetti-a7ed1dfe-a40e-11e5-8d9d-525400d4a26a.html
http://birdhouse-lsce.extra.cea.fr:8090/wpsoutputs/flyingpigeon/plotout_uncertainty-a7ed1dfe-a40e-11e5-8d9d-525400d4a26a.html

In [ ]: