|
ocssw
V2022
|
Functions | |
| def | getBinRes (resolution) |
| def | get_ftype (filepath) |
| def | whoops (errormsg, status=1) |
| def | execute_command (command) |
| def | run_clo_program (program, inputs) |
Variables | |
| parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter,description=,add_help=True) | |
| type | |
| str | |
| help | |
| default | |
| action | |
| False | |
| prodGroup = parser.add_mutually_exclusive_group() | |
| choices | |
| float | |
| True | |
| args = parser.parse_args() | |
| list | sanitize = ['ifile','ofile','logfile','geofile','parfile','product','resolution'] |
| value = getattr(args,arg) | |
| list | levels = [logging.ERROR, logging.INFO, logging.DEBUG] |
| verbosity = max(0, min(args.verbose, len(levels)-1)) | |
| filename | |
| format | |
| level | |
| param_proc = ParamProcessing(parfile=args.parfile) | |
| ifile | |
| extension = args.oformat | |
| list | geo_opts = ["north", "south", "east", "west"] |
| list | l2bin_opts = ["resolution"] |
| list | l3map_opts |
| string | tmpfile_l2gen = "mapgen_l2gen_list.txt" |
| string | tmpfile_l2bin = "mapgen_tmp.l2bin.nc" |
| string | msg = "Parameters passed to or assumed by mapgen:\n" |
| k | |
| key | |
| v | |
| ftype = None | |
| list | ifiles = [] |
| list | geofiles = [] |
| ifile_list = lstfile.readlines() | |
| dictionary | clo = {} |
| l2filelst = open(tmpfile_l2gen,'w') | |
| l1file = l1file.strip() | |
| string | ofile = "{filebase}_{cnt:02}.nc".format(filebase=tmpfile_l2gen.replace('_list.txt',''),cnt=i+1) |
| file_typer = mlp.get_obpg_file_type.ObpgFileTyper(l1file) | |
| sensor = file_typer.get_sensor() | |
| dirs_by_sensor = by_sensor(sensor) | |
| sensor_dir = dirs_by_sensor['dir'] | |
| sensor_sub_dir = dirs_by_sensor['subdir'] | |
| filename_l3mapgen_defaults | |
| product_rgb | |
| l2f = l2f.strip() | |
Function Documentation
◆ execute_command()
| def mapgen.execute_command | ( | command | ) |
◆ get_ftype()
◆ getBinRes()
◆ run_clo_program()
| def mapgen.run_clo_program | ( | program, | |
| inputs | |||
| ) |
◆ whoops()
Variable Documentation
◆ action
◆ args
◆ choices
◆ clo
◆ default
◆ dirs_by_sensor
◆ extension
◆ False
◆ file_typer
| file_typer = mlp.get_obpg_file_type.ObpgFileTyper(l1file) |
◆ filename
◆ filename_l3mapgen_defaults
| filename_l3mapgen_defaults |
◆ float
◆ format
◆ ftype
◆ geo_opts
◆ geofiles
◆ help
◆ ifile
◆ ifile_list
◆ ifiles
◆ k
◆ key
◆ l1file
◆ l2bin_opts
◆ l2f
◆ l2filelst
| l2filelst = open(tmpfile_l2gen,'w') |
◆ l3map_opts
| list l3map_opts |
◆ level
◆ levels
| list levels = [logging.ERROR, logging.INFO, logging.DEBUG] |
◆ msg
◆ ofile
◆ param_proc
| param_proc = ParamProcessing(parfile=args.parfile) |
◆ parser
◆ prodGroup
◆ product_rgb
◆ sanitize
| list sanitize = ['ifile','ofile','logfile','geofile','parfile','product','resolution'] |
◆ sensor
◆ sensor_dir
| sensor_dir = dirs_by_sensor['dir'] |
◆ sensor_sub_dir
| sensor_sub_dir = dirs_by_sensor['subdir'] |
◆ str
◆ tmpfile_l2bin
◆ tmpfile_l2gen
◆ True
◆ type
◆ v
◆ value
◆ verbosity
| verbosity = max(0, min(args.verbose, len(levels)-1)) |


