NASA Logo
Ocean Color Science Software

ocssw V2022
build_ADT_json.py File Reference

Go to the source code of this file.

Classes

class  Tree
 

Namespaces

 build_ADT_json
 

Functions

def build_my_tree (Tree input_tree)
 
def count_order (str line, pattern="| ")
 
def traverse_list (List[str] lines, int i, Tree tree)
 
def trim_word (str inp_str)
 
def create_dict_from_tree (Tree tree, json)
 
def get_the_tree (path_inp_file, out_path)
 

Variables

 ocdata = os.environ.get('OCDATAROOT')
 
 path_no_glint = os.path.join(ocdata, "viirs", "j1", "cal", "NOAA_20_ADtree_no_glint_R2022.0_results.txt")
 
 path_glint = os.path.join(ocdata, "viirs", "j1", "cal", "NOAA_20_ADtree_mod_glint_R2022.0_results.txt")
 
 path_night = os.path.join(ocdata, "viirs", "j1", "cal", "NOAA_20_ADtree_night_R2022.0_results.txt")
 
def tree_no_glint = get_the_tree(path_no_glint, "no_glint_day.json")
 
def tree_glint = get_the_tree(path_glint, "glint_day.json")
 
dictionary adt_night = {"version": "v6.R2022"}
 
def tree_night = get_the_tree(path_night, "night.json")
 
dictionary adt_full
 
 outfile
 
 indent