A routine for reading spectra from the basel spectral library