Re: Curvefit issues [message #48194] |
Thu, 06 April 2006 15:27 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> I think you need to read the directions for the FUNCTION_NAME
> keyword again. For one thing, it needs to be a *function*, not
> a procedure. And it needs to accept two positional parameters,
> not three.
Oh, never mind. I can't read the directions either! :-)
Cheers,
David
P.S. Maybe it is the *directions* that are the problem!
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Curvefit issues [message #48195 is a reply to message #48194] |
Thu, 06 April 2006 15:25  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jonathan Wolfe writes:
> I'm trying to fit a simple 1 parameter function to this data (see below
> A,B); however, I am getting an error message " % GFUNCT: Incorrect
> number of arguments." What's going on? It seems trivial, but I don' see
> where it is faltering. Thanks for the help!
I think you need to read the directions for the FUNCTION_NAME
keyword again. For one thing, it needs to be a *function*, not
a procedure. And it needs to accept two positional parameters,
not three.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|