Difference between revisions of "WCS GetCoverage for Grid returning CSV Example"

From Earth Science Information Partners (ESIP)
Line 10: Line 10:
 
The main site for python is http://www.python.org but I prefer to install via the activestate package. Especially Mark Hammonds PythonWin is a nice IDE.
 
The main site for python is http://www.python.org but I prefer to install via the activestate package. Especially Mark Hammonds PythonWin is a nice IDE.
  
=== Getting Demo Script
+
=== Getting Demo Script ===
  
 
Download [http://datafed.net/demo/soapdemo.py] and saveit with extension '''.py'''
 
Download [http://datafed.net/demo/soapdemo.py] and saveit with extension '''.py'''
 
type from command line '''python soapdemo.py'''
 
type from command line '''python soapdemo.py'''
 
There are no parameters, the script is hard coded for demo purposes.
 
There are no parameters, the script is hard coded for demo purposes.

Revision as of 09:57, June 6, 2006

Simple WCS Python Example

This example uses popular python scripting language to call Datafed WCS via SOAP.

Getting python

Windows users: go to http://www.activestate.com and download Python 2.4 or later. You can also go straight to download download python

The main site for python is http://www.python.org but I prefer to install via the activestate package. Especially Mark Hammonds PythonWin is a nice IDE.

Getting Demo Script

Download [1] and saveit with extension .py type from command line python soapdemo.py There are no parameters, the script is hard coded for demo purposes.