Moment of totality through diffraction grating