Automatic spectra calibration 2D3D