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) |
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
◆ extension
◆ False
◆ filename
◆ 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
◆ sanitize
list sanitize = ['ifile','ofile','logfile','geofile','parfile','product','resolution'] |
◆ str
◆ tmpfile_l2bin
◆ tmpfile_l2gen
◆ True
◆ type
◆ v
◆ value
◆ verbosity
verbosity = max(0, min(args.verbose, len(levels)-1)) |