Gallery

From PyWPS
Jump to: navigation, search

Examples of PyWPS in action

GeoTiff histogram generator:

This process accept a GeoTiff input and then it uses matplotlib to output the histogram of each satelite band:

Description

http://rsg.pml.ac.uk/wps/wps.cgi?request=DescribeProcess&
service=wps&version=1.0.0&identifier=histogramprocess

Input

sat_image.tif (as PNG):


Sat image.png


srtm.tif (as PNG):

Srtm.png


Example of Execute

http://rsg.pml.ac.uk/wps/wps.cgi?request=Execute&service=wps&
version=1.0.0&identifier=histogramprocess&
datainputs=[imageInput=http://rsg.pml.ac.uk/wps/sat_image.tif]&
responsedocument=histogramOutput=@asreference=true

or ascyn call for a big file (60megas)

http://rsg.pml.ac.uk/wps/wps.cgi?request=Execute&service=wps&
version=1.0.0&identifier=histogramprocess&
datainputs=[imageInput=http://rsg.pml.ac.uk/wps/srtm.tif]&
status=true&
storeExecuteResponse=true&
responsedocument=histogramOutput=@asreference=true

Result

http://rsg.pml.ac.uk/wps/wpsoutput/histogramOutput-6050.png with Sat_image input:

HistogramOutput-6050.png


http://rsg.pml.ac.uk/wps/wpsoutput/pywps-128342417110.xml with SRTM intput:


HistogramOutput-6019.png


GeoTiff reducer

This process accepts a GeoTiff and a reduction factor and will use a median calculation to reduce the image. In the example shown an input image with 69megas is reduced into 10% of its size resulting in a new image with 700kb

Description

http://rsg.pml.ac.uk/wps/wps.cgi?request=DescribeProcess&
service=wps&version=1.0.0&identifier=reducer

Input

srtm.tif (as PNG)

Srtm.png

Example of Execute

http://rsg.pml.ac.uk/wps/wps.cgi?request=Execute&service=wps&version=1.0.0&
identifier=reducer&
datainputs=[reductionFactor=0.1;imageInput=http://rsg.pml.ac.uk/wps/srtm.tif]&
responsedocument=imageOutput=@asreference=true&
status=true&storeExecuteResponse=true

Result

http://rsg.pml.ac.uk/wps/wpsoutput/pywps-128343250797.xml

(notice that the smaller image is more pixelized)

Srtm small.png