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

Home » Public Forums » archive » mpfit: meaning of status flag
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: mpfit: meaning of status flag [message #53844 is a reply to message #53683] Mon, 07 May 2007 00:06 Go to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
Craig Markwardt wrote:
> Maarten <maarten.sneep@knmi.nl> writes:
>
>> On May 1, 1:27 pm, Christopher Thom <c...@oddjob.uchicago.edu> wrote:
>>> Quoth Maarten:
>>>
>>>> A plot of the fit looks OK, and the residuals seem to be fine, so I
>>>> suspect it is OK, but the documentation is a bit vague: "STATUS: an
>>>> integer status code is returned. All values other than zero can
>>>> represent success." So I might be successful, but I'm certainly a bit
>>>> uncertain right now ;)
>>>
>>> The documentation in mpfit.pro is pretty explicit.
>>
>> Thanks, I'd been looking at the mpfitfun docs, which is somewhat less
>> explicit. I should have thought to look at the primary source.
>>
>>> A return status of 1 means that everything is working ok, and that the
>>> routine seems to have found the minimum. If your fit looks ok, and the
>>> errors seem reasonable, then your work here is done.
>>
>> I already assumed that that was the case.
>
>
> Wait, you are saying you got a return status value of 1 (success) and
> an empty ERRMSG, and yet somehow a message was printed to the screen
> that said "improper input parameters"?

No, PEBKAC. Off by one error on my part, after creating a human
readable version of the documentation header in LaTeX, the status
messages were off by one (insert bright red face here). All is fine
now (although the mismatch between the headers of mpfit and mpfitfun
is real; the mpfit header seems more readable).

Maarten
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Where do all those heap variables come from?
Next Topic: Add diagonal 1:1 line in a plot?

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

Current Time: Fri Oct 10 23:01:23 PDT 2025

Total time taken to generate the page: 1.91837 seconds