Page 1 of 1

Including Band Math data in l2bin

Posted: Thu Dec 07, 2023 9:18 am America/New_York
by reneeschoeman
Hi there,

I am currently building a model in which I would like to include surface chl-a and depth-integrated chl-a. The latter derived from surface chl-a and both as 8-day composites. I have no problems with the surface chl part, but the depth-integrated values are a different story. My aim was to calculate depth-integrated values for individual files and then use the common binning & mapping process (i.e., l2bin-l3bin-l3mapgen) to obtain the 8-day composites. However, I am at a loss.

I started by simply creating Math Bands for depth integrated values, but I don't see how Math Bands/BEAM-DIMAP data can be included in the binning process. Is there a way to do this in bash command? Or is it better to look into a different method, such as the mosaic tool?

Running SeaDAS 8.4.1, with OCSSW V2023.3 on a MacOS Ventura 13.6.1

Thank you and best wishes,

Re: Including Band Math data in l2bin

Posted: Mon Dec 11, 2023 2:00 pm America/New_York
by OB SeaDAS - xuanyang02
Currently, l2bin takes an L2 file or NetCDF4 file with similar format as ifile. I was able to use gpt to write the output of bandmaths to a NetCDF4 file, but l2bin is not able to get the necessary information from the file.

Re: Including Band Math data in l2bin

Posted: Mon Jan 08, 2024 10:22 pm America/New_York
by reneeschoeman
Apologies for the delayed response. Thank you for your reply. I figured l2bin can only use the delivered product types, such as chlor_a in my case. I figured that one could work around this by replacing the chlor_a values with new ones in an external program, saving the new .nc files, and using the new files in l2bin.

Re: Including Band Math data in l2bin

Posted: Tue Jan 09, 2024 9:30 am America/New_York
by sidsaini445
My recommendation would be to start by testing the Mosaic tool option, or exploring the feasibility of an external preprocessing step. Modifying l2bin itself seems more difficult.