StevenFrost / AviationWeather

A C++ library for formatting and parsing various meteorology-related data structures
Other
4 stars 1 forks source link

LIFR flight category valid with partial missing data #46

Open ollyau opened 8 years ago

ollyau commented 8 years ago

I came across the following METAR which ForeFlight parses as LIFR despite having missing cloud cover information:

O88 180115Z AUTO 24004KT 1/2SM 28/11 A2997

Currently libaw will return unknown flight category due to missing data, but because LIFR is the flight category with the lowest visibility and ceiling, it is possible to categorize a METAR as LIFR if either visibility or ceiling fit the LIFR criteria without ever knowing the missing value (essentially short circuit boolean or evaluation).