Spectral line extraction routines =================================