pro sox_prep2, fdir,index_save ;+ ; NAME: ; SOX_PREP2 ; PURPOSE: ; Create Level1 dataset ; EXPLANATION: ; Read Level0 dataset and calibrate wavelengths and sensitivities of ; the SOX instruments. ; CALLING SEQUENCE: ; SOX_PREP2, fdir, index_save ; INPUTS: ; fdir: level0_file containing directory and file name (fdir-0.sav) & ; level1_file containing directory and file name (fdir-1.sav) ; index_save =0: start creating cmax1.sav, which contains shift bin numbers ; of spectra to adjust wavelength scale. ; =1: for confirmation and modification of shift bin numbers. ; =2: create level-1 database. ; MODIFICATION HISTORY: ; 8-Mar-2020 TW - Version 1.0