]> git.mxchange.org Git - simgear.git/commitdiff
handle NCD (nil clouds detected) in METAR
authorTorsten Dreyer <Torsten@t3r.de>
Fri, 31 Dec 2010 12:31:09 +0000 (13:31 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Fri, 31 Dec 2010 12:31:09 +0000 (13:31 +0100)
simgear/environment/metar.cxx

index 569f0261e38a3e5ffe2cb909e699f47d1296e14a..d5f2c7badaece5f58f07cdc3a2492e4f1f30a55a 100644 (file)
@@ -767,6 +767,7 @@ bool SGMetar::scanSkyCondition()
 
        if (!strncmp(m, "CLR", i = 3)                           // clear
                        || !strncmp(m, "SKC", i = 3)            // sky clear
+                       || !strncmp(m, "NCD", i = 3)            // nil cloud detected
                        || !strncmp(m, "NSC", i = 3)            // no significant clouds
                        || !strncmp(m, "CAVOK", i = 5)) {       // ceiling and visibility OK (implies 9999)
                m += i;