Including Band Math data in l2bin

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
reneeschoeman
Posts: 2
Joined: Wed Dec 21, 2022 3:09 am America/New_York
Answers: 0

Including Band Math data in l2bin

by reneeschoeman » Thu Dec 07, 2023 9:18 am America/New_York

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 L2.oc.x.nc 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,
Renee

Tags:

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

Re: Including Band Math data in l2bin

by OB SeaDAS - xuanyang02 » Mon Dec 11, 2023 2:00 pm America/New_York

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.

reneeschoeman
Posts: 2
Joined: Wed Dec 21, 2022 3:09 am America/New_York
Answers: 0

Re: Including Band Math data in l2bin

by reneeschoeman » Mon Jan 08, 2024 10:22 pm America/New_York

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.

sidsaini445
Posts: 6
Joined: Tue Jan 09, 2024 2:16 am America/New_York
Answers: 0

Re: Including Band Math data in l2bin

by sidsaini445 » Tue Jan 09, 2024 9:30 am America/New_York

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.

Post Reply