Hi.
In this moment all is correct because my near METAR station is not reporting this "NSC" code. I agree with 8/8 is the max cloud coverage (100%), so that 9 value in Meteotemplate code is a bug:
Look for in this file for see the bug i referer:
/template/pages/metar/metarAjax.php (line 480):
Code: Select all
<img src="<?php echo $pageURL.$path?>icons/clouds<?php echo $clouds[$i]['cov1']?>.png" style="height: 30px">
Refer a img html tag with .png file depends of $clouds[$i]['cov1'] variable. Look for this variable in the next file:
/template/pages/metar/phpmyeasyweather.inc (lines 988-1018):
Code: Select all
switch ($first3) {
case "FEW":
$returner["cov1"] = "1";
$returner["cov2"] = "2";
$returner["sky"] = "few clouds at ";
break;
case "SCT":
$returner["cov1"] = "3";
$returner["cov2"] = "4";
$returner["sky"] = "partly cloudy at ";
break;
case "BKN":
$returner["cov1"] = "5";
$returner["cov2"] = "7";
$returner["sky"] = "mostly cloudy at ";
break;
case "OVC":
$returner["cov1"] = "8";
$returner["cov2"] = "8";
$returner["sky"] = "sky overcast at ";
break;
}
if (($first3 == "SKC") || ($first3 == "CLR")) {
$returner["cov1"] = "0";
$returner["cov2"] = "0"; // they hadn´t an option in switch
$returner["sky"] = "sky clear"; // oh my god think about that construction!
$returner["cumulus"] = "no";
} else if ($first3 == "NSC") {
$returner["cov1"] = "9";
$returner["cov2"] = "9";
$returner["sky"] = "no significant clouds below 5,000 ft\n";
$returner["cumulus"] = "no";
If you can see, the variable number depends of code METAR, OVC (Overcast) is 8, BKN (Broken) is 5 to 7, etc. but later (last lines) in "NSC" code (Not significant clouds) the variable is equal to 9 in the code
this is $returner[cov1] = 9 in this code when METAR report "NSC" code. If you find any METAR station that in that moment reports this NSC code you can reproduce this error with clouds9.png 404 error file not found.
P.D. Sorry for my bad english

maybe I did not explain myself very well the first time