Hello,
I'm trying to convert a large number of MERIS level 2 files into binned 4km daily level 3 chlor_a files. However, when I try running l2bin, just l2bin 7.0.1 gets printed to the terminal but none of the other typical information that follows that. Everything works fine when I've tried running it with level 2 MODIS and VIIRS files, so I'm not sure what I'm doing wrong.
Here's the python code I'm using to call l2bin:
subprocess.run(["l2bin",
f"infile={filename}",
f"ofile={out_file}",
f"l3bprod={product}",
f"resolve={spatial_res}",
f"flaguse={flags}",
])
which would end up running this command line for example
l2bin infile=inputfile.nc ofile=outputfile.nc l3bprod=chlor_a resolve=4 flaguse=flags
I'm using the default flags $OCSSWROOT/share/meris/l2bin_defaults.par
Thanks,
Chris
Issue with l2bin and Meris level 2 files
-
- Subject Matter Expert
- Posts: 713
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: Issue with l2bin and Meris level 2 files
Can you run on your terminal and post the result here?
Can you also or and see if outputfile.nc was generated?
Can you also provide the content of inputfile.nc, so we can reproduce the error?
Code: Select all
seadas_info
Can you also
Code: Select all
ls -l outputfile.nc
Code: Select all
ncdump -h outputfile.nc
Can you also provide the content of inputfile.nc, so we can reproduce the error?