abc
2017-10-25 11:15:57 UTC
HI, I have set of data of an absorption spectra and I want to fit the voigt profile using mpfit. The function I am using is http://www.heliodocs.com/php/xdoc_print.php?file=$SSW/yohkoh/ucon/idl/metcalf/voigt.pro
But I am getting error as
GDL> res=mpfit('voigt',p0,functargs=fa)
% VOIGT: function VOIGT takes 2 params: 'Result = VOIGT(A,U)'
% Execution halted at: MPFIT_CALL_FUNC_EXTRA 1396 /home/abc/Documents/gdl/pro/pro/mpfit.pro
% MPFIT_CALL 1439 /home/abc/Documents/gdl/pro/pro/mpfit.pro
% MPFIT 3185 /home/abc/Documents/gdl/pro/pro/mpfit.pro
% $MAIN$
Kindly help
But I am getting error as
GDL> res=mpfit('voigt',p0,functargs=fa)
% VOIGT: function VOIGT takes 2 params: 'Result = VOIGT(A,U)'
% Execution halted at: MPFIT_CALL_FUNC_EXTRA 1396 /home/abc/Documents/gdl/pro/pro/mpfit.pro
% MPFIT_CALL 1439 /home/abc/Documents/gdl/pro/pro/mpfit.pro
% MPFIT 3185 /home/abc/Documents/gdl/pro/pro/mpfit.pro
% $MAIN$
Kindly help