Empirical and spectral template based approaches in the analysis of galaxy data