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

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

fixed problem with axis ordering in scanner

Line 
1#!/usr/bin/env python
2
3import csmlscan
4import sys
5
6args=[]
7
8args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqa/output/annual/atmos', '-o', 'coapec500yr/xaaqa_annual_atmos.xml', '-t', 't', 'GridSeriesFeature'])
9
10args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqa/output/annual/ocean', '-o', 'coapec500yr/xaaqa_annual_ocean.xml', '-t', 't', 'GridSeriesFeature'])
11
12args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqa/output/decadal/atmos', '-o', 'coapec500yr/xaaqa_decadal_atmos.xml', '-t', 't', 'GridSeriesFeature'])
13
14args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqa/output/decadal/ocean', '-o', 'coapec500yr/xaaqa_decadal_ocean.xml', '-t', 't', 'GridSeriesFeature'])
15
16args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqa/output/monthly/atmos', '-o', 'coapec500yr/xaaqa_monthly_atmos.xml', '-t', 't', 'GridSeriesFeature'])
17
18args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqa/output/monthly/ocean', '-o', 'coapec500yr/xaaqa_monthly_ocean.xml', '-t', 't', 'GridSeriesFeature'])
19
20args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqa/output/seasonal/atmos', '-o', 'coapec500yr/xaaqa_seasonal_atmos.xml', '-t', 't', 'GridSeriesFeature'])
21
22args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqa/output/seasonal/ocean', '-o', 'coapec500yr/xaaqa_seasonal_ocean.xml', '-t', 't', 'GridSeriesFeature'])
23
24
25#xaaqd
26args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqd/output/annual/atmos', '-o', 'coapec500yr/xaaqd_annual_atmos.xml', '-t', 't', 'GridSeriesFeature'])
27
28args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqd/output/annual/ocean', '-o', 'coapec500yr/xaaqd_annual_ocean.xml', '-t', 't', 'GridSeriesFeature'])
29
30args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqd/output/decadal/atmos', '-o', 'coapec500yr/xaaqd_decadal_atmos.xml', '-t', 't', 'GridSeriesFeature'])
31
32args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqd/output/decadal/ocean', '-o', 'coapec500yr/xaaqd_decadal_ocean.xml', '-t', 't', 'GridSeriesFeature'])
33
34args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqd/output/monthly/atmos', '-o', 'coapec500yr/xaaqd_monthly_atmos.xml', '-t', 't', 'GridSeriesFeature'])
35
36args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqd/output/monthly/ocean', '-o', 'coapec500yr/xaaqd_monthly_ocean.xml', '-t', 't', 'GridSeriesFeature'])
37
38args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqd/output/seasonal/atmos', '-o', 'coapec500yr/xaaqd_seasonal_atmos.xml', '-t', 't', 'GridSeriesFeature'])
39
40args.append(['csmlscan.py', '-d', '/badc/coapec/data/HadCM3_beowulf/64-bit/xaaqd/output/seasonal/ocean', '-o', 'coapec500yr/xaaqd_seasonal_ocean.xml', '-t', 't', 'GridSeriesFeature'])
41
42
43errormsg=[]
44for arggroup in args:
45    try:
46        csmlscan.main(arggroup)
47    except:
48        errormsg.append( 'Batch run failed: could not pass args: ' + str(arggroup))
49
50if errormsg != ():
51    print errormsg
52else:
53    print 'Batch run successful'
Note: See TracBrowser for help on using the repository browser.