Module ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias Assign NameStore NameLoad Assign NameStore Call NameLoad Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad Str Expr Call NameLoad NameLoad keyword Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad Str Expr Call NameLoad NameLoad keyword Str Assign NameStore ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num Assign NameStore Call NameLoad ListLoad NameLoad Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Expr Call NameLoad NameLoad Expr Str
N/A __future__ absolute_import __future__ print_function owslib.wps WebProcessingService WPSExecution WFSFeatureCollection WFSQuery GMLMultiPolygonFeatureCollection monitorExecution printInputOutput owslib.util dump N/A verbose False N/A wps N/A WebProcessingService http://cida.usgs.gov/climate/gdp/process/WebProcessingService verbose verbose skip_caps True N/A N/A N/A wps getcapabilities N/A N/A print N/A WPS Identification type: %s N/A N/A wps identification type N/A N/A print N/A WPS Identification title: %s N/A N/A wps identification title N/A N/A print N/A WPS Identification abstract: %s N/A N/A wps identification abstract N/A operation N/A wps operations N/A N/A N/A print N/A WPS Operation: %s N/A operation name N/A process N/A wps processes N/A N/A N/A print N/A WPS Process: identifier=%s title=%s N/A N/A process identifier N/A process title N/A process N/A N/A wps describeprocess gov.usgs.cida.gdp.wps.algorithm.FeatureWeightedGridStatisticsAlgorithm N/A N/A print N/A WPS Process: identifier=%s N/A process identifier N/A N/A print N/A WPS Process: title=%s N/A process title N/A N/A print N/A WPS Process: abstract=%s N/A process abstract N/A input N/A process dataInputs N/A N/A N/A print Process input: N/A N/A printInputOutput input indent N/A output N/A process processOutputs N/A N/A N/A print Process output: N/A N/A printInputOutput output indent N/A polygon N/A N/A -102.8184 39.5273 N/A -102.8184 37.418 N/A -101.2363 37.418 N/A -101.2363 39.5273 N/A -102.8184 39.5273 N/A featureCollection N/A GMLMultiPolygonFeatureCollection N/A polygon N/A processid gov.usgs.cida.gdp.wps.algorithm.FeatureWeightedGridStatisticsAlgorithm N/A inputs N/A N/A FEATURE_ATTRIBUTE_NAME the_geom N/A DATASET_URI dods://cida.usgs.gov/qa/thredds/dodsC/derivatives/derivative-days_above_threshold.pr.ncml N/A DATASET_ID ensemble_b1_pr-days_above_threshold N/A TIME_START 2010-01-01T00:00:00.000Z N/A TIME_END 2011-01-01T00:00:00.000Z N/A REQUIRE_FULL_COVERAGE false N/A DELIMITER COMMA N/A STATISTICS MEAN N/A GROUP_BY STATISTIC N/A SUMMARIZE_TIMESTEP false N/A SUMMARIZE_FEATURE_ATTRIBUTE false N/A FEATURE_COLLECTION featureCollection N/A output OUTPUT N/A execution N/A N/A wps execute processid inputs output OUTPUT N/A N/A monitorExecution execution N/A     
# 3b) Execute
# Submits an HTTP POST "Execute" process request to the WPS service, keeps checking the status of the request,
# and retrieves the output once the request terminates successfully (displaying any errors if found).
# This request uses a FEATURE_COLLECTION input defined as a GML (lat, lon) polygon.

polygon = [(-102.8184, 39.5273), (-102.8184, 37.418), (-101.2363, 37.418), (-101.2363, 39.5273), (-102.8184, 39.5273)]
featureCollection = GMLMultiPolygonFeatureCollection( [polygon] )
processid = 'gov.usgs.cida.gdp.wps.algorithm.FeatureWeightedGridStatisticsAlgorithm'
inputs =  [ ("FEATURE_ATTRIBUTE_NAME","the_geom"),
            ("DATASET_URI", "dods://igsarm-cida-thredds1.er.usgs.gov:8080/thredds/dodsC/dcp/conus_grid.w_meta.ncml"),
            ("DATASET_ID", "ccsm3_a1b_tmax"),
            ("TIME_START","1960-01-01T00:00:00.000Z"),
            ("TIME_END","1960-12-31T00:00:00.000Z"),
            ("REQUIRE_FULL_COVERAGE","true"),
            ("DELIMITER","COMMA"),
            ("STATISTICS","MEAN"),
            ("STATISTICS","MINIMUM"),
            ("STATISTICS","MAXIMUM"),
            ("STATISTICS","WEIGHT_SUM"),
            ("STATISTICS","VARIANCE"),
            ("STATISTICS","STD_DEV"),
            ("STATISTICS","COUNT"),
            ("GROUP_BY","STATISTIC"),
            ("SUMMARIZE_TIMESTEP","false"),
            ("SUMMARIZE_FEATURE_ATTRIBUTE","false"),
            ("FEATURE_COLLECTION", featureCollection)
           ]
output = "OUTPUT"
execution = wps.execute(processid, inputs, output = "OUTPUT")
# alternatively, submit a pre-made request specified in an XML file
#request = open('../tests/wps_USGSExecuteRequest3.xml','rb').read()
#execution = wps.execute(None, [], request=request)
monitorExecution(execution)    
