comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » MPFIT2DFUNC problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
MPFIT2DFUNC problem [message #79967] Sun, 22 April 2012 19:28
Poonam is currently offline  Poonam
Messages: 7
Registered: June 2011
Junior Member
Hi,

I am trying to fit a 3D data using MPFIT2DFUNC.

This is how my program in IDL looks:

readcol, '06jd.dat', X, Y, Z, ERR
.comp myfunc1.pro
start = [1.D, 1.D, 1.D, 0.5]
pi=replicate({fixed:0, limited:[0,0], limits:[0.D,0.D]},4)
pi(2).fixed=1
pi(2) = 1.04
result = MPFIT2DFUNC('MYFUNC1', X, Y, Z, ERR, start, PARINFO=pi,
perror=dparm)
print, result, dparm

Below is the error I am getting. Please let me know where I am wrong.

% Compiled module: MYFUNC1.
% Conflicting data structures: PI,<FLOAT ( 1.04000)>.
% Execution halted at: $MAIN$

result = MPFIT2DFUNC('MYFUNC1', X, Y, Z, ERR, start, PARINFO=pi,
perror=dparm)
^
% Syntax error.
At: /local/Papers/SN2006jd/aastex/Analysis/Externals2.eps-IDL, Line
14


Thanks
Poonam
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Coyote Library Updates
Next Topic: Re: MPFIT2DFUNC problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:37:59 PDT 2025

Total time taken to generate the page: 0.00516 seconds