OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
mlp_utils.py
Go to the documentation of this file.
1 
2 """
3 Utility functions for the multilevel_processor.
4 """
5 
6 __author__ = 'melliott'
7 
8 TRUTH_VALUES = ['1', 'ON', 'on', 'TRUE', 'true', 'YES', 'yes']
9 
10 def is_option_value_true(opt_val_str):
11  """
12  Returns True if opt_val_str is one the various possible values that OBPG
13  programs accept as true.
14  """
15  opt_val = False
16  if opt_val_str in TRUTH_VALUES:
17  opt_val = True
18  return opt_val
19 
20 
def is_option_value_true(opt_val_str)
Definition: mlp_utils.py:10