L2 flag criteria

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
cmitchell
Posts: 19
Joined: Tue Jun 06, 2017 11:42 am America/New_York
Answers: 0

L2 flag criteria

by cmitchell » Thu Oct 26, 2017 2:51 pm America/New_York

Hi - I was wondering what the criteria are for a couple of the L2 flags to be set. Is this information available somewhere? I dug around online and in the ocssw code, but I cannot find it... The flags I'm interested in are the coccolith and turbid flags, but if someone can point me in the right direction it would be much appreciated!

Thanks.

Filters:

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

L2 flag criteria

by gnwiii » Fri Oct 27, 2017 6:57 am America/New_York

Have a look at $OCSSWROT/build/src/l2gen/setflags.c:

        if (isCoccolith(l2rec,ip))
            l2rec->flags[ip] |= COCCOLITH;

        if (l2rec->input->aer_opt != AERWANGSWIR && l2rec->input->aer_opt != AERRHSWIR) {
            if (isTurbid(l2rec,ip))
                l2rec->flags[ip] |= TURBIDW;
  }


The two isX(l2rec,ip)functions are defined in setflags.c.

cmitchell
Posts: 19
Joined: Tue Jun 06, 2017 11:42 am America/New_York
Answers: 0

L2 flag criteria

by cmitchell » Fri Oct 27, 2017 4:38 pm America/New_York

Great, that's just what I was looking for. Thanks.

Post Reply