spectral_index_fitting – Calculating spectral index in different condition