Go to the documentation of this file.
5 from copy_l2file
import create_copy
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.
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')
19 options = parser.parse_args()
24 create_copy(options.ifile, options.ofile, options.products)
def create_copy(in_file, out_file, prod_select)