NAME:
  osislope
 PURPOSE:
  Correct an IR OSIRIS spectrum for the slope problem.
 DESCRIPTION:
  Each order of an IR spectrum from OSIRIS is corrected for the "sloping"
  problem given the linear fit coefficients for each order of the spectrum.
  The origin of this linear fit for each order is column 128 of the CCD
 CATEGORY:
  Spectroscopy
 CALLING SEQUENCE:
  osislope,calib,spec,fit,bad
 INPUTS:
  calib - Calibration structure variable
  spec  - Spectrum to be slope corrected
  fit   - Linear fit information to be applied to spectrum
  bad   - Badflags for the spectrum
 OPTIONAL INPUT PARAMETERS:
 KEYWORD INPUT PARAMETERS:
 OUTPUTS:
  outspec - Slope corrected spectrum
 KEYWORD OUTPUT PARAMETERS:
 COMMON BLOCKS:
 SIDE EFFECTS:
 RESTRICTIONS:
 PROCEDURE:
 MODIFICATION HISTORY:
  98/06/05, Written by Chris Dalla Piazza, Lycoming College
  98/07/17, CDP Added the badflags for the spectrum