MPAS-JEDI
DiagnoseObsStatisticsArgs.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 
3 import argparse
4 import jediApplicationArgs
5 import JediDBArgs
6 from ProcessArgs import ProcessArgs
7 
9  def __init__(self):
10  super().__init__()
11  self.argProcessorsargProcessors += [jediApplicationArgs, JediDBArgs]
12 
13  @staticmethod
14  def add_arguments(parser):
15  parser.add_argument("-n", "--nprocs", default = 1, type = int,
16  help="Number of tasks/processors for multiprocessing")
17  parser.add_argument("-p", "--meanPath", default = JediDBArgs.default_path, type = str,
18  help="Path to deterministic or mean state UFO feedback files, default = "
19  +JediDBArgs.default_path)
20  parser.add_argument("-m", "--nMembers", default = 0, type = int,
21  help="number of ensemble members; must be >1 to produce ensemble diagnostic stats")
22  parser.add_argument("-e", "--ensemblePath", default = JediDBArgs.default_path+"/mem{:03d}", type = str,
23  help="Path to ensemble member UFO feedback files; must have substitution string for member integer, e.g., '{:03d}' for 001, 002, etc...")
24 
26 
27 processor.processArgs()
28 
29 args = processor.args