Index PHPmyEasyWeather PHPmyEasyWeather Homepage

getVisibility

getVisibility -- return visibility out of METAR or TAF Code

Description

int getVisibility (string $METAR_TAF);

getVisibility returns the visibility measured in meters out of a METAR or TAF code if available. There is one thing you have to know about METAR or TAF: if visibility contains the value of 9999 it means better than 10km. And another visibility code is added by PHPmaEasyWeather: if getVisibility returns the value of 8888 it means: more than 10 km, no clouds below 5000 ft, no precipitation and no thunderstorm, inside TAF and METAR encoded by "CAVOK". If there is no visibility - item contained in $METAR_TAF or the code is incorrect getVisibility will return false.

Note: This function works absolutely independent from a given Runway Visual Range. In any case, if getVisibility returns false or not it is implicitly required to check the Runway Visual Range using getMetarRVR.


Previous Up Next