source: CMIP6dreqbuild/trunk/src/framework/imanage.py @ 713

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreqbuild/trunk/src/framework/imanage.py@713
Revision 713, 613 bytes checked in by mjuckes, 5 years ago (diff)

New ingestion pathway

Line 
1
2from ingest import util_checkUpd
3from ingest import util_anal
4reload( util_checkUpd )
5import sys
6
7class ingest(object):
8
9  def __init__(self):
10    self.so = util_checkUpd.stdo()
11    self.vg = util_checkUpd.varGroups()
12
13##i = ingest()
14if __name__ == '__main__':
15  args = sys.argv[1:]
16  if len(args) == 0:
17    i = ingest()
18
19  elif args[0]  in [ '-A','--all']:
20    i = ingest()
21    util_anal.varGroupChk()
22  elif args[0] in ['-a','--anal']:
23    util_anal.varGroupChk()
24
25  else:
26    print '''Valid arguments:
27 * None       : Ingest only
28 * -A, --all  : Ingest and run analysis
29 * -a, --anal : Analysis only
30'''
31   
Note: See TracBrowser for help on using the repository browser.