Issue with l2bin and Meris level 2 files

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
cberglund
Posts: 5
Joined: Thu May 07, 2020 10:30 am America/New_York
Answers: 0

Issue with l2bin and Meris level 2 files

by cberglund » Fri Nov 12, 2021 8:15 pm America/New_York

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

Filters:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 657
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: Issue with l2bin and Meris level 2 files

by OB SeaDAS - xuanyang02 » Mon Nov 15, 2021 10:31 am America/New_York

Can you run

Code: Select all

seadas_info
on your terminal and post the result here?

Can you also

Code: Select all

ls -l outputfile.nc
or

Code: Select all

ncdump -h outputfile.nc
and see if outputfile.nc was generated?

Can you also provide the content of inputfile.nc, so we can reproduce the error?

Post Reply