I want to get a mapped file via l2bin and l3mapgen tool as you suggested, like what the Mosaic by gpt.sh did. However, I cannot deal with the l2bin and l3mapgen tool very well as I am not very clear with some parameters (such as prodtype in l2bin, produce_rgb and use_rgb in l3mapgen...). I have posted issues of l2bin in the previous topic (https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=8229), here is my specific steps.
Firstly, a l2 product file (rhos_nnn, Rrs_nnn) of MODIS was generated from l2gen with a subset option (south=31.2, north=31.75, west=117.25, east=117.9), the l2 filename was T2015001023000.L2_LAC_OC.
Secondly, the ONE file was binned by l2bin tool, resolve was ''H", l3bprod was "all" and prodtype was "day", other parameters were default. I think prodtype setting should have no effect on one image. Then an exception was thrown, the log file was same as the last topic.
However, when I set the flaguse to "NONE" and other field was same as previous setting, it worked and one file named "T2015001.L3b_DAY_OC" was generated. I don't know why default flaguse didn't work. This is my first question.
Then, I used the l3mapgen tool to map the l3b data from l2bin, the parameters were:
projection : smi, resolution : qkm, product: rhos_645,rhos_859,rhos_469,rhos_555,
north: 32.000, south: 31.000, east: 118.000, west: 117.000
and others were default.
The file did be produced, but the all data were NaN in SeaDAS. Because the data from l2bin cannot be opened in SeaDAS, I am not sure whether the problem was from l2bin, or, because the l3mapgen tool was set incorrectly. This is my second question.
I will uploaded regarding data(L2prod, L3b, L3m) to here: https://github.com/zgcao/SeaDAS-data, hope these were helpful for you. Please let me know if you need more details about this.
Best Regards,
Zhigang

