OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
aquaverse.py
Go to the documentation of this file.
1 #Creator: Emerson Sirk (emerson.a.sirk@nasa.gov)
2 
3 #Last Edited: 1/14/22
4 
5 from copy_l2file import create_copy
6 import argparse
7 
8 #User select through argparse
9 parser = argparse.ArgumentParser(description='''
10 #This program takes an input l2 file with geophysical data and creates an
11 #output L2 file with the same global attributes and groups as the input.
12 #The geophysical data is replaced by the product data generated by a MDN neural network.
13 ''')
14 
15 ifile = parser.add_argument('--ifile', type=str, required=True)
16 ofile = parser.add_argument('--ofile', type=str, required=True)
17 products = parser.add_argument('--products', type=str, default='chl,tss,cdom,pc')
18 
19 options = parser.parse_args()
20 
21 #if __name__ == '__main__' :
22 
23 #call function with user inputs
24 create_copy(options.ifile, options.ofile, options.products)
def create_copy(in_file, out_file, prod_select)
Definition: copy_l2file.py:11