Added a function to convert the input wavelength units into microns