MPAS-JEDI
jediApplicationArgs.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 
3 jediAppName = 'variational'
4 nOuterIter = 0
5 depbgGroup = 'depbg'
6 depanGroup = 'depan'
7 
8 def add_arguments(parser):
9  global jediAppName, nOuterIter, depbgGroup, depanGroup
10  parser.add_argument('-app', '--jediAppName', type=str, default=jediAppName, choices = ['variational','hofx'],
11  help='Name of jedi application that produced IODA files')
12  parser.add_argument('-nout', '--nOuterIter', type=int, default=nOuterIter,
13  help='Number of outer iterations for jedi application')
14  parser.add_argument('-bg', '--depbgGroup', type=str, default=depbgGroup,
15  help='ObsGroup for background departures')
16  parser.add_argument('-an', '--depanGroup', type=str, default=depanGroup,
17  help='ObsGroup for analysis departures')
18 
19 def parse_args(args):
20  global jediAppName, nOuterIter, depbgGroup, depanGroup
21  jediAppName = args.jediAppName
22  nOuterIter = args.nOuterIter
23  depbgGroup = args.depbgGroup
24  depanGroup = args.depanGroup