In [1]:
import requests
In [23]:
token = "53cb2e327d894fd0b927dab7a33ed5f2"
In [3]:
#opendap_url = "http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis2.dailyavgs/surface/mslp.2006.nc"
opendap_url = "http://esg-dn1.nsc.liu.se/thredds/dodsC/esg_dataroot1/cordexdata/cordex/output/EUR-44/SMHI/CCCma-CanESM2/historical/r1i1p1/SMHI-RCA4/v1/mon/tasmax/v20130927/tasmax_EUR-44_CCCma-CanESM2_historical_r1i1p1_SMHI-RCA4_v1_mon_199101-200012.nc"
#opendap_url = "http://esg-dn1.nsc.liu.se/thredds/dodsC/esg_dataroot2/cmip5data/cmip5/output1/SMHI/EC-EARTH/decadal1970/mon/atmos/Amon/r1i3p1/v20140318/tasmax/tasmax_Amon_EC-EARTH_decadal1970_r1i3p1_197101-198012.nc"
In [4]:
req_url = "https://localhost:5000/ows/wps?version=1.0.0&service=wps&request=describeprocess&identifier=hello"
In [5]:
response = requests.get(req_url, verify=False)
In [7]:
print response.text
In [24]:
req_url = "https://localhost:5000/ows/wps?version=1.0.0&service=wps&request=execute&identifier=hello"
In [25]:
response = requests.get(req_url+"&token="+token+"&datainputs=name=tux", verify=False)
In [26]:
print response.text
In [27]:
ext_req_url = "https://localhost:5000/ows/proxy/hummingbird?version=1.0.0&service=wps&request=execute&identifier=ncdump"
In [28]:
response = requests.get(ext_req_url+"&token="+token+"&datainputs=dataset_opendap="+opendap_url, verify=False)
In [29]:
print response.text
In [ ]: