Class: stapMadrigalService | stapMadrigalService.py | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stapMadrigalService is the class that provides the Simple time access protocol service.Like all my python cgi scripts, stapMadrigalService has the following structure: the entire cgi is contained in one class, with a main function at the end which serves simply to call the __init__ function of the class. This __init__ function is responsible for calling all other class methods. It is made up of a single try block, with the purpose of reporting all exceptions in well-formatted html to both the user and the administrator. The __init__ function first makes sure the pythonlib can be found. It then calls setScriptState to determine from any cgi arguments and cookies what the script is supposed to do. This script serves to expose Madrigal to Virtual Observatories via the Simple Time Access Protocol, as described in http://www.mssl.ucl.ac.uk/~eca/stap.html. The names of all form elements used by stapMadrigalService are listed below: START: start time of the interval. This should be specified in IS0-8601 format,
eg. END: end time of the interval, in the same format as START FORMAT: See http://www.mssl.ucl.ac.uk/~eca/stap.html (optional) INSTRUMENT_ID = ID of instrument to be retrieved (optional) Change history: Written by Bill Rideout Jul. 31, 2007 $Id: stapMadrigalService_stapMadrigalService.py.html 3304 2011-01-17 15:25:59Z brideout $
|