source: TI02-CSML/trunk/Scanner/batchrun.py @ 901

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/Scanner/batchrun.py@901
Revision 901, 701 bytes checked in by domlowe, 14 years ago (diff)

Code to batch run scanner for multiple datagranules

Line 
1#!/usr/bin/env python
2
3import csmlscan
4import sys
5
6args=[]
7args.append(['csmlscan.py', '-d', '/home/users/domlowe/CSML/Coapec/testfiles', '-o', 'test1.xml', '-t', 't', 'GridSeriesFeature'])
8args.append(['csmlscan.py', '-d', '/home/users/domlowe/CSML/Coapec/testfiles', '-o', 'test2.xml', '-t', 't', 'GridSeriesFeature'])
9args.append(['csmlscan.py', '-d', '/home/users/domlowe/CSML/Coapec/testfiles', '-o', 'test3.xml', '-t', 't', 'GridSeriesFeature'])
10
11errormsg=[]
12for arggroup in args:
13    try:
14        csmlscan.main(arggroup)
15    except:
16        errormsg.append( 'Batch run failed: could not pass args: ' + str(arggroup))
17
18if errormsg != ():
19    print errormsg
20else:
21    print 'Batch run successful'
Note: See TracBrowser for help on using the repository browser.