How to average images with clouds and ignore these cloud pixels?

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 509
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: How to average images with clouds and ignore these cloud pixels?

by OB SeaDAS - xuanyang02 » Mon Feb 13, 2023 10:43 am America/New_York

Thanks George for pointing out the difference between the average of geophysical parameters and the math average.

Hope I get it right this time --

((chlor_a_M >= 0.0 ? chlor_a_M : 0) +(
chlor_a_D0 >= 0.0 ? chlor_a_D0 : 0) +
(chlor_a_D1 >= 0.0 ? chlor_a_D1 : 0)) /
(((chlor_a_M >= 0.0 ? 1 : 0) +
(chlor_a_D0 >= 0.0 ? 1 : 0) +
(chlor_a_D1 >= 0.0 ? 1 : 0))

If you do Math Band after collocation.

(($1.chlor_a >= 0.0 ? $1.chlor_a : 0) +
($2.chlor_a >= 0.0 ? $2.chlor_a : 0) +
($3.chlor_a >= 0.0 ? $3.chlor_a : 0)) /
(($1.chlor_a >= 0.0 ? 1 : 0) +
($2.chlor_a >= 0.0 ? 1 : 0) +
($3.chlor_a >= 0.0 ? 1 : 0))

if you do Math Band directly on the three bands.

Tags:

cassandra21
Posts: 8
Joined: Thu Jan 19, 2023 11:41 am America/New_York
Answers: 0

Re: How to average images with clouds and ignore these cloud pixels?

by cassandra21 » Wed Mar 08, 2023 2:12 pm America/New_York

Hello! I'm writting to let you know that it worked!

Thank you so much for your help :)

Post Reply