Page 1 of 1

How to calculate csol_z?

Posted: Thu Aug 03, 2023 4:54 am America/New_York
by zhangcz
Hi,

I want to implement the Particulate Inorganic Carbon (PIC) product. But I've got a problem when I learn the source code of the PIC algorithm. The source code "l1rec->csolz[ip]", which I don't know how to get or calculate "csolz"? (The source code I mention is in calcite.c--calcite_3b())

Waiting for your reply.

How to generate csol_z product?

Posted: Thu Aug 03, 2023 5:08 am America/New_York
by zhangcz
Hi,

I want to generate the csol_z product in SeaDAS 8.2.0. I checked "csol_z" and cliked "run", than it could run successfully. But there is no "csol_z" product in xxxxx.OC.nc file. Did I not do it right?

Waiting for your reply.

Re: How to calculate csol_z?

Posted: Thu Aug 03, 2023 12:56 pm America/New_York
by OB ODPS - towens
csol_z:long_name = "Center Solar Zenith Angle" ; should be in the L2 OC file

Tommy

Re: How to calculate csol_z?

Posted: Thu Aug 03, 2023 9:35 pm America/New_York
by zhangcz
Is it a one-dimensional data?(such as 2030*1)

Thank you.

Re: How to calculate csol_z?

Posted: Fri Aug 04, 2023 11:06 am America/New_York
by OB SeaDAS - xuanyang02
Yes, it's one dimensional and can be found in Metadata -> Scan_Line_Attributes as seen in the attached screenshot.

On the other hand, l2gen can generate product solz (solar zenith angle), which is two dimensional
Screenshot 2023-08-04 at 10.56.58 AM.png
Screenshot 2023-08-04 at 10.56.58 AM.png (350.98 KiB) Not viewed yet

Re: How to calculate csol_z?

Posted: Sat Aug 05, 2023 2:16 pm America/New_York
by OB.DAAC-EDL - SeanBailey
The l2gen scan line attributes variable csolz is not the same as the l1rec->csol_z variable. The former is the solar zenith angle for the center of the scan line, the later (required by the algorithm) is the cosine of the solar zenith angle at each pixel. It is not a product that l2gen can output, although solar zenith angle (solz) can be output, to which you can apply the cosine function.

Sean