MPAS-JEDI
AnalyzeStatsArgs.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
3
import
jediApplicationArgs
4
from
ProcessArgs
import
ProcessArgs
5
import
textwrap
6
7
class
analyzeStatsArgs
(
ProcessArgs
):
8
def
__init__
(self):
9
super().
__init__
()
10
self.
argProcessors
argProcessors += [jediApplicationArgs]
11
12
@staticmethod
13
def
add_arguments
(parser):
14
parser.add_argument(
"-n"
,
"--npan"
,
15
help=
"Number of tasks/processors for analyses"
)
16
parser.add_argument(
"-r"
,
"--npread"
,
17
help=
"Number of tasks/processors for reading StatsDB objects, defaults to npan"
)
18
parser.add_argument(
"-d"
,
"--diagSpace"
,
19
help=textwrap.dedent(
20
'''
21
Select DiagSpaces with non-conservative matching
22
e.g., amsua selects amsua_metop-a, amsua_n19, etc.
23
default behavior is to select all DiagSpaces in config
24
'''
))
25
parser.add_argument(
"-g"
,
"--anGrp"
,
26
help=
"Select a group of DiagSpaces (overridden by --diagSpace option)"
)
27
parser.add_argument(
"-a"
,
"--analysisType"
,
28
help=
"Select a single analysisType"
)
29
30
processor =
analyzeStatsArgs
()
31
32
processor.processArgs()
33
34
args = processor.args
AnalyzeStatsArgs.analyzeStatsArgs
Definition:
AnalyzeStatsArgs.py:7
AnalyzeStatsArgs.analyzeStatsArgs.__init__
def __init__(self)
Definition:
AnalyzeStatsArgs.py:8
AnalyzeStatsArgs.analyzeStatsArgs.add_arguments
def add_arguments(parser)
Definition:
AnalyzeStatsArgs.py:13
ProcessArgs.ProcessArgs
Definition:
ProcessArgs.py:5
ProcessArgs.ProcessArgs.argProcessors
argProcessors
Definition:
ProcessArgs.py:7
mpas-bundle
mpas-jedi
graphics
AnalyzeStatsArgs.py
Generated on Thu Sep 9 2021 12:56:27 for MPAS-JEDI by
1.9.1