NAME: 
  lcfitsvd
 PURPOSE: 
  Fit a lightcurve function (Fourier series plus phase coefficient).
 DESCRIPTION:
 CATEGORY:
  Function fitting
 CALLING SEQUENCE:
 INPUTS:
  lon    - Longitude of sub-earth point (0 to 360).
  phang  - Phase angle (Sun-Object-Earth angle in degrees).
  data   - Measured values.
  sig    - Uncertainties of the data.
  nterms - Number of fourier terms to fit.  (2*nterms+1 unknowns)
 OPTIONAL INPUT PARAMETERS:
 KEYWORD INPUT PARAMETERS:
 OUTPUTS:
  c - fourier series coefficients (see fourfunc)
  csig - uncertainties of the coefficients
 KEYWORD OUTPUT PARAMETERS:
 COMMON BLOCKS:
 SIDE EFFECTS:
 RESTRICTIONS:
 PROCEDURE:
 MODIFICATION HISTORY:
  94/10/10, Written by Marc W. Buie, Lowell Observatory
  95/08/01, cloned from LCFIT by MWB
  2005/11/22, MWB, changed call from svdfit to mysvdfit