A global analysis of the atmospheric neutrino data