Questions about QAAV6 source code
Questions about QAAV6 source code
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
- 1729516536147.png (27.95 KiB) Not viewed yet
Filters:
Re: Questions about QAAV6 source code
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!
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 (39.55 KiB) Not viewed yet
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
Re: Questions about QAAV6 source code
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
Regards,
Sean
Re: Questions about QAAV6 source code
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!
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!
Re: Questions about QAAV6 source code
Glad Professor Lee confirmed that the "check aph443 range" stabilizes QAAv6 results, especially when Rrs data quality is uncertain.