source: TI03-DataExtractor/trunk/known_installations/addTheLot.py @ 1244

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/trunk/known_installations/addTheLot.py@1244
Revision 1244, 922 bytes checked in by astephen, 14 years ago (diff)

Close to alpha version.

Line 
1#!/usr/bin/env python
2
3"""addTheLot.py - adds all COAPEC datasets to the DX, and the datasetGroup of course!"""
4
5import sys, os
6
7print "Clearing out..."
8os.system("cleanOutDatasetXMLFile.py")
9
10print "Adding dataset Group..."
11os.system('addDatasetGroup.py -s coapec -l "Coupled Ocean-Atmosphere Processes and European Climate" -p coapec -r coapec -b http://glue.badc.rl.ac.uk/cgi-bin/browse.py?uri=badc.nerc.ac.uk/COAPEC_HadCM3_500Yr -w http://badc.nerc.ac.uk/data/coapec')
12
13for location in ("Atmospheric", "Ocean"):
14    lclc=location[:5].lower()
15    for timeperiod in ("decadal", "annual", "monthly", "seasonal"):
16        uctp=timeperiod.title()
17        cmd="""addDataset.py -s %s_%s -l "500-Year Run: %s %s means" -g coapec -r coapec,dset2 -a file:/disks/glue1/astephens/coapec_metadata/COAPEC_500YrRun_wholerun_%s_%s.xml""" % (timeperiod, lclc, location, uctp, timeperiod, lclc)
18        print cmd
19        os.system(cmd)
Note: See TracBrowser for help on using the repository browser.