In [1]:
import requests
In [2]:
wps_url = 'http://localhost:5000/wps'
In [5]:
resp = requests.get(wps_url + '?service=WPS&request=GetCapabilities')
print(resp.url)
# print(resp.content)
In [6]:
resp = requests.get(wps_url + '?service=WPS&request=DescribeProcess&version=1.0.0&identifier=simple_plot')
print(resp.url)
# print(resp.content)
In [11]:
nc_url = "https://www.esrl.noaa.gov/psd/thredds/fileServer/Datasets/ncep.reanalysis.derived/surface/air.mon.ltm.nc"
req_url = wps_url + '?service=WPS&request=Execute&version=1.0.0&'
req_url += 'identifier=simple_plot&'
req_url += 'datainputs=dataset=@xlink:href={};variable=air'.format(nc_url)
resp = requests.get(req_url)
print(resp.url)
In [12]:
nc_url = "https://www.esrl.noaa.gov/psd/thredds/fileServer/Datasets/ncep.reanalysis.derived/surface/air.mon.ltm.nc"
req_url = wps_url + '?service=WPS&request=Execute&version=1.0.0&'
req_url += 'identifier=simple_plot&'
req_url += 'datainputs=dataset=@xlink:href={};variable=air&'.format(nc_url)
req_url += 'storeExecuteResponse=true&'
req_url += 'status=true'
resp = requests.get(req_url)
print(resp.url)
In [ ]: