added checks to ensure data wavelengths are within flux-calibration wavelenghts