Questions about QAAV6 source code

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
a.topo_s
Posts: 3
Joined: Mon Oct 21, 2024 9:01 am America/New_York
Answers: 0

Questions about QAAV6 source code

by a.topo_s » Mon Oct 21, 2024 9:18 am America/New_York

Why was the ‘check aph443 range’ code (lines 412-440) added in the source code of the QAAv6 algorithm in l2gen (https://oceancolor.gsfc.nasa.gov/docs/ocssw/qaa_8c_source.html)?
Attachments
code
code
1729516536147.png (27.95 KiB) Not viewed yet

Filters:

a.topo_s
Posts: 3
Joined: Mon Oct 21, 2024 9:01 am America/New_York
Answers: 0

Re: Questions about QAAV6 source code

by a.topo_s » Fri Oct 25, 2024 5:44 am America/New_York

Hello everyone,

I noticed that in the pml_iop_calculate.c file (https://oceancolor.gsfc.nasa.gov/docs/ocssw/pml__iop__calculate_8c.html), there is also a "check aph443 range" code segment (line 87-105), and the comments mention that "this sanity check is an empirical fix from the Lee model." I have searched through the algorithm's technical documentation and published literature but haven't found any explanation or description of this empirical fix.

Could someone please point me to where I can find the basis or a reference for its use?

Thank you very much!
Attachments
pml_iop_calculate.png
pml_iop_calculate.png (39.55 KiB) Not viewed yet

OB.DAACx - SeanBailey
Posts: 1519
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 9 times

Re: Questions about QAAV6 source code

by OB.DAACx - SeanBailey » Tue Oct 29, 2024 7:17 am America/New_York

This one required a bit of sleuthing...and contacting the developer who originally provided the code used in l2gen. It has been determine that this change went into the code base circa 2006, when updates were made going from version 2 to version 3 of QAA. The current code is version 6. As to exactly why the code was added, we can only surmise that it was a check to ensure the inversion was stable. I know this may be an unsatisfactorily incomplete answer, but short of calling up Zhongping Lee (who might also not recall, as it has been almost 2 decades), this is the best we can provide.

Regards,
Sean

a.topo_s
Posts: 3
Joined: Mon Oct 21, 2024 9:01 am America/New_York
Answers: 0

Re: Questions about QAAV6 source code

by a.topo_s » Tue Nov 05, 2024 4:20 am America/New_York

Hi Sean,

Thank you very much for your reply! I emailed Professor Zhongping Lee, and he mentioned that the "check 443 range" procedure is entirely based on their data and experience. It's intended to ensure that the aph440 product remains within a reasonable range even when there are issues with the quality of the Rrs data.

Thanks again for your support!

noramila
Posts: 3
Joined: Mon Nov 04, 2024 7:04 am America/New_York
Answers: 0

Re: Questions about QAAV6 source code

by noramila » Wed Nov 06, 2024 4:32 am America/New_York

Glad Professor Lee confirmed that the "check aph443 range" stabilizes QAAv6 results, especially when Rrs data quality is uncertain.

Post Reply