OB.DAAC Logo
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)
 
 l2f = l2f.strip()
 

Function Documentation

◆ execute_command()

def mapgen.execute_command (   command)
Execute a process on the system

Definition at line 64 of file mapgen.py.

◆ get_ftype()

def mapgen.get_ftype (   filepath)

Definition at line 42 of file mapgen.py.

◆ getBinRes()

def mapgen.getBinRes (   resolution)

Definition at line 16 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 85 of file mapgen.py.

◆ whoops()

def mapgen.whoops (   errormsg,
  status = 1 
)

Definition at line 60 of file mapgen.py.

Variable Documentation

◆ action

action

Definition at line 114 of file mapgen.py.

◆ args

args = parser.parse_args()

Definition at line 168 of file mapgen.py.

◆ choices

choices

Definition at line 130 of file mapgen.py.

◆ clo

dictionary clo = {}

Definition at line 258 of file mapgen.py.

◆ default

default

Definition at line 107 of file mapgen.py.

◆ extension

string extension = args.oformat

Definition at line 212 of file mapgen.py.

◆ False

False

Definition at line 114 of file mapgen.py.

◆ filename

filename

Definition at line 184 of file mapgen.py.

◆ float

float

Definition at line 137 of file mapgen.py.

◆ format

format

Definition at line 185 of file mapgen.py.

◆ ftype

def ftype = None

Definition at line 232 of file mapgen.py.

◆ geo_opts

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

Definition at line 217 of file mapgen.py.

◆ geofiles

geofiles = []

Definition at line 234 of file mapgen.py.

◆ help

help

Definition at line 103 of file mapgen.py.

◆ ifile

ifile

Definition at line 202 of file mapgen.py.

◆ ifile_list

ifile_list = lstfile.readlines()

Definition at line 237 of file mapgen.py.

◆ ifiles

list ifiles = []

Definition at line 233 of file mapgen.py.

◆ k

k

Definition at line 229 of file mapgen.py.

◆ key

key

Definition at line 229 of file mapgen.py.

◆ l1file

l1file = l1file.strip()

Definition at line 283 of file mapgen.py.

◆ l2bin_opts

list l2bin_opts = ["resolution"]

Definition at line 218 of file mapgen.py.

◆ l2f

l2f = l2f.strip()

Definition at line 408 of file mapgen.py.

◆ l2filelst

l2filelst = open(tmpfile_l2gen,'w')

Definition at line 277 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 219 of file mapgen.py.

◆ level

level

Definition at line 186 of file mapgen.py.

◆ levels

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

Definition at line 180 of file mapgen.py.

◆ msg

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

Definition at line 227 of file mapgen.py.

◆ ofile

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

Definition at line 289 of file mapgen.py.

◆ param_proc

param_proc = ParamProcessing(parfile=args.parfile)

Definition at line 193 of file mapgen.py.

◆ parser

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

Definition at line 99 of file mapgen.py.

◆ prodGroup

prodGroup = parser.add_mutually_exclusive_group()

Definition at line 118 of file mapgen.py.

◆ sanitize

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

Definition at line 170 of file mapgen.py.

◆ str

str

Definition at line 103 of file mapgen.py.

◆ tmpfile_l2bin

string tmpfile_l2bin = "mapgen_tmp.l2bin.nc"

Definition at line 224 of file mapgen.py.

◆ tmpfile_l2gen

string tmpfile_l2gen = "mapgen_l2gen_list.txt"

Definition at line 223 of file mapgen.py.

◆ True

True

Definition at line 163 of file mapgen.py.

◆ type

type

Definition at line 103 of file mapgen.py.

◆ v

v

Definition at line 229 of file mapgen.py.

◆ value

value = getattr(args,arg)

Definition at line 173 of file mapgen.py.

◆ verbosity

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

Definition at line 182 of file mapgen.py.