How to calculate csol_z?

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
zhangcz
Posts: 19
Joined: Tue Oct 25, 2022 9:45 pm America/New_York
Answers: 0

How to calculate csol_z?

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

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.

Tags:

zhangcz
Posts: 19
Joined: Tue Oct 25, 2022 9:45 pm America/New_York
Answers: 0

How to generate csol_z product?

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

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.

OB ODPS - towens
Subject Matter Expert
Subject Matter Expert
Posts: 378
Joined: Fri Feb 05, 2021 9:17 am America/New_York
Answers: 0
Been thanked: 4 times

Re: How to calculate csol_z?

by OB ODPS - towens » Thu Aug 03, 2023 12:56 pm America/New_York

csol_z:long_name = "Center Solar Zenith Angle" ; should be in the L2 OC file

Tommy

zhangcz
Posts: 19
Joined: Tue Oct 25, 2022 9:45 pm America/New_York
Answers: 0

Re: How to calculate csol_z?

by zhangcz » Thu Aug 03, 2023 9:35 pm America/New_York

Is it a one-dimensional data?(such as 2030*1)

Thank you.

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

Re: How to calculate csol_z?

by OB SeaDAS - xuanyang02 » Fri Aug 04, 2023 11:06 am America/New_York

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

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1470
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 5 times

Re: How to calculate csol_z?

by OB.DAAC - SeanBailey » Sat Aug 05, 2023 2:16 pm America/New_York

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

Post Reply