Correct magnitudes for atmospheric extinction