Added a new condition to check first two wavelength data to the 'calibrated' function