pro get_15,x_15
;+
;  Procedure to load the wavelength calibration of SXV  bins into
;  IDL variable.  To extend the CMB calibration table to cover all bins
;  it does a linear fit to the wavelengths and extrapolates out to cover
;  128 bins. Should only be used for qualitative work eg realistic looking
;  plots.
;  
;  Output:
;             x_15    - array of approximate SXV  wavelengths
; Use:
;      IDL> get_15,x_15
;
;
;	CDP  Feb 92
;	RDB  13-Mar-93	Changed $DIR_BCS_CALDAT to $DIR_BCS_CAL
;-
;
;  get CMB bin/wavelength calibration
;
get_lun,lun1
openr,lun1,concat_dir('$DIR_BCS_CAL','sul15_wl.dat')
x1 = fltarr(196)
l1 = fltarr(196)
for i=0,195 do begin
   readf,lun1,a,b,c,d,e,f,g
   x1(i) = a
   l1(i) = e
endfor
close,lun1
free_lun,lun1

;
;  fit line to real data cos want wavelength for all bins
;
coeff = poly_fit(x1,l1,1,yfit)

x_15 = fltarr(128)

for i=0,255,2 do begin
  x_15(i/2) = coeff(0) + coeff(1)*i
endfor

end
