NASA Logo
Ocean Color Science Software

ocssw V2022
mapgen Namespace Reference

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)
Execute a process on the system

Definition at line 66 of file mapgen.py.

◆ get_ftype()

def mapgen.get_ftype (   filepath)

Definition at line 44 of file mapgen.py.

◆ getBinRes()

def mapgen.getBinRes (   resolution)

Definition at line 18 of file mapgen.py.

◆ run_clo_program()

def mapgen.run_clo_program (   program,
  inputs 
)
Set up and run a program that accepts keyword=value command line arguemnts ala CLO

Definition at line 87 of file mapgen.py.

◆ whoops()

def mapgen.whoops (   errormsg,
  status = 1 
)

Definition at line 62 of file mapgen.py.

Variable Documentation

◆ action

action

Definition at line 116 of file mapgen.py.

◆ args

args = parser.parse_args()

Definition at line 170 of file mapgen.py.

◆ choices

choices

Definition at line 132 of file mapgen.py.

◆ clo

dictionary clo = {}

Definition at line 260 of file mapgen.py.

◆ default

default

Definition at line 109 of file mapgen.py.

◆ dirs_by_sensor

dirs_by_sensor = by_sensor(sensor)

Definition at line 300 of file mapgen.py.

◆ extension

string extension = args.oformat

Definition at line 214 of file mapgen.py.

◆ False

False

Definition at line 116 of file mapgen.py.

◆ file_typer

Definition at line 296 of file mapgen.py.

◆ filename

filename

Definition at line 186 of file mapgen.py.

◆ filename_l3mapgen_defaults

filename_l3mapgen_defaults
Initial value:
1 = os.path.join(os.getenv('OCDATAROOT'),
2  sensor_dir, sensor_sub_dir, 'l3mapgen_defaults.par')

Definition at line 305 of file mapgen.py.

◆ float

float

Definition at line 139 of file mapgen.py.

◆ format

format

Definition at line 187 of file mapgen.py.

◆ ftype

def ftype = None

Definition at line 234 of file mapgen.py.

◆ geo_opts

list geo_opts = ["north", "south", "east", "west"]

Definition at line 219 of file mapgen.py.

◆ geofiles

geofiles = []

Definition at line 236 of file mapgen.py.

◆ help

help

Definition at line 105 of file mapgen.py.

◆ ifile

ifile

Definition at line 204 of file mapgen.py.

◆ ifile_list

ifile_list = lstfile.readlines()

Definition at line 239 of file mapgen.py.

◆ ifiles

list ifiles = []

Definition at line 235 of file mapgen.py.

◆ k

k

Definition at line 231 of file mapgen.py.

◆ key

key

Definition at line 231 of file mapgen.py.

◆ l1file

l1file = l1file.strip()

Definition at line 285 of file mapgen.py.

◆ l2bin_opts

list l2bin_opts = ["resolution"]

Definition at line 220 of file mapgen.py.

◆ l2f

l2f = l2f.strip()

Definition at line 434 of file mapgen.py.

◆ l2filelst

l2filelst = open(tmpfile_l2gen,'w')

Definition at line 279 of file mapgen.py.

◆ l3map_opts

list l3map_opts
Initial value:
1 = ["product", "use_rgb","product_rgb", "oformat", "resolution",
2  "projection", "central_meridian", "palfile", "fudge", "threshold",
3  "datamin", "datamax", "scale_type", "palfile", "use_transparency",
4  "trimNSEW","write_projtext"]

Definition at line 221 of file mapgen.py.

◆ level

level

Definition at line 188 of file mapgen.py.

◆ levels

list levels = [logging.ERROR, logging.INFO, logging.DEBUG]

Definition at line 182 of file mapgen.py.

◆ msg

string msg = "Parameters passed to or assumed by mapgen:\n"

Definition at line 229 of file mapgen.py.

◆ ofile

string ofile = "{filebase}_{cnt:02}.nc".format(filebase=tmpfile_l2gen.replace('_list.txt',''),cnt=i+1)

Definition at line 291 of file mapgen.py.

◆ param_proc

param_proc = ParamProcessing(parfile=args.parfile)

Definition at line 195 of file mapgen.py.

◆ parser

parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter,description=,add_help=True)

Definition at line 101 of file mapgen.py.

◆ prodGroup

prodGroup = parser.add_mutually_exclusive_group()

Definition at line 120 of file mapgen.py.

◆ product_rgb

product_rgb

Definition at line 317 of file mapgen.py.

◆ sanitize

list sanitize = ['ifile','ofile','logfile','geofile','parfile','product','resolution']

Definition at line 172 of file mapgen.py.

◆ sensor

sensor = file_typer.get_sensor()

Definition at line 298 of file mapgen.py.

◆ sensor_dir

sensor_dir = dirs_by_sensor['dir']

Definition at line 301 of file mapgen.py.

◆ sensor_sub_dir

sensor_sub_dir = dirs_by_sensor['subdir']

Definition at line 303 of file mapgen.py.

◆ str

str

Definition at line 105 of file mapgen.py.

◆ tmpfile_l2bin

string tmpfile_l2bin = "mapgen_tmp.l2bin.nc"

Definition at line 226 of file mapgen.py.

◆ tmpfile_l2gen

string tmpfile_l2gen = "mapgen_l2gen_list.txt"

Definition at line 225 of file mapgen.py.

◆ True

True

Definition at line 165 of file mapgen.py.

◆ type

type

Definition at line 105 of file mapgen.py.

◆ v

v

Definition at line 231 of file mapgen.py.

◆ value

value = getattr(args,arg)

Definition at line 175 of file mapgen.py.

◆ verbosity

verbosity = max(0, min(args.verbose, len(levels)-1))

Definition at line 184 of file mapgen.py.