Characterizing the line spread function in integral field spectrographs from ground-based telescopes