Three-dimensional calculation of atmospheric neutrinos