Spectral Line Fitting of an Astronomical Source