Detecting low cloud algorithm