OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
getanc_aquarius.py File Reference

Go to the source code of this file.

Classes

class  GetAncAquarius
 

Namespaces

 getanc_aquarius
 

Variables

string version = "1.1"
 
string usage
 
 parser = argparse.ArgumentParser(prog="getanc_aquarius",usage=usage)
 
 action
 
 nargs
 
 help
 
 metavar
 
string ancdb_help_text = "Use a custom filename for ancillary database. If " \
 
 default
 
 False
 
 dest
 
 type
 
 float
 
 args = parser.parse_args()
 
 g
 
 stop
 
 sensor
 
 getanc = os.path.join(g.dirs['bin'], 'getanc')
 
list getanc_cmd = [getanc, '--mission=aquarius --noprint', args.filename]
 
 status = subprocess.call(getanc_cmd, shell=False)
 
string anc_filelist = args.start + ".anc"
 
 anclist = list(g.ancfiles.keys())
 
 atm3 = g.ancfiles.get('atm3', None)
 
 gran = os.path.basename(args.filename).split('.')[0]
 
string scatfile = '.'.join([gran, 'L2_SCAT_V5.0.tar'])
 
string scatpath = '/'.join(['/cgi/getfile', scatfile])
 
 tar = tarfile.open(scatfile)