Table of Contents

Module: getExperimentFiles getExperimentFiles.py

getExperimentFiles.py is a script run to return a text output of selected experiment files data.

It is presently used by the madmatlab methods getExperimentFiles, and via the cgi script getExperimentFilesService.py the madmatlab method getExperimentFilesWeb. It has the following input arguments:

--id=<experiment id> (integer)

--trusted=<0 if not, 1 if is> (default to not trusted)

Returns comma-delimited data, one line for each experiment file, with the following fields:

  1. file.name (string) Example /opt/mdarigal/blah/mlh980120g.001

  2. file.kindat (int) Kindat code. Example: 3001

  3. file.kindat desc (string) Kindat description: Example Basic Derived Parameters

  4. file.category (int) (1=default, 2=variant, 3=history, 4=real-time)

  5. file.status (string)(preliminary, final, or any other description)

  6. file.permission (int) 0 for public, 1 for private. For now will not return private files.

Returns empty string if experiment id nor found, and returns status -1.

This script, and the corresponding cgi script getExperimentFilesService.py are available to any scripting language that wants to access Madrigal metadata.


Table of Contents

This document was automatically generated on Fri Dec 30 10:17:51 2005 by HappyDoc version r1_5