source: CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex202.py @ 902

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex202.py@902
Revision 902, 441 bytes checked in by mjuckes, 3 years ago (diff)

cleaned examples and import structure

Line 
1import sys, os
2
3if len(sys.argv) > 1:
4  if os.path.isdir( sys.argv[1] ):
5    if os.path.isfile( '%s/scope.py' % sys.argv[1] ):
6      sys.path.insert(0, sys.argv[1] )
7      import scope
8    else:
9      print ( 'No scope.py in specified directory' )
10      sys.exit(0)
11  else:
12    print  ('Specified directory does not exist' )
13    sys.exit(0)
14else:
15  from dreqPy import scope
16
17
18sc = scope.dreqQuery()
19p=1
20sc.volByMip2('DCPP',p, makeTabs=True)
Note: See TracBrowser for help on using the repository browser.