X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 23 Jul 2015 02:30 PM by  Mai Truong
Syntax error with FUNCTARGS
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Mai Truong



New Member


Posts:
New Member


--
23 Jul 2015 02:30 PM
    Hi, I'm new to IDL, and I'm trying to compile a .pro file in Exelis in my Mac OSX. I know that this code runs in other machines, but when I compile it, I get a syntax error message, which I don't know where to start looking to fix: % Compiled module: FITCIRC_MPFIT_FUNC. FUNCTARGS={XPP:xpp[sel],YPP:ypp[sel],VLOS:vlos[sel],AON:aon[sel]},$ ^ % Syntax error. The part of the code with this problem is: for i=0,nn-1 do begin sel = Rind.(i) respar = mpfit('fitcirc_mpfit_func',inipar,$ FUNCTARGS={XPP:xpp[sel],YPP:ypp[sel],VLOS:vlos[sel],AON:aon[sel]},$ PARINFO=parinfo,BESTNORM=chi2min,DOF=dof,COVAR=covar_pell,/QUIET) pell[*,i] = respar err_vrot[i]=sqrt(covar_pell[npar-1,npar-1]*chi2min/dof) nell[i] = n_elements(sel) redchi2ell[i] = chi2min/dof endfor The part "={" is highlighted as the error. My IDL version is 8.2. Could you give me some suggestions as to what this error means? Thank you so much,

    Mai Truong



    New Member


    Posts:
    New Member


    --
    23 Jul 2015 03:18 PM
    I found the solution, so please delete this thread if possible.
    You are not authorized to post a reply.