Page 1 of 1

L2 flag criteria

Posted: Thu Oct 26, 2017 2:51 pm America/New_York
by cmitchell
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.

L2 flag criteria

Posted: Fri Oct 27, 2017 6:57 am America/New_York
by gnwiii
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.

L2 flag criteria

Posted: Fri Oct 27, 2017 4:38 pm America/New_York
by cmitchell
Great, that's just what I was looking for. Thanks.