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

Home » Public Forums » archive » IDL beginner-MPFIT questions
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: IDL beginner-MPFIT questions [message #85152 is a reply to message #85145] Wed, 10 July 2013 08:11 Go to previous message
NateM is currently offline  NateM
Messages: 2
Registered: July 2013
Junior Member
On Tuesday, July 9, 2013 4:22:34 PM UTC-5, Phillip Bitzer wrote:
> Do you mean your limits are a function of current values in parameter space? Perhaps Craig can correct me, but I'm not sure mpfit can handle this. You can limit parameters as a function of other parameters though.
>
>
>
> The error you are getting looks like there is a problem with the limits you set, viz., the lower limit is larger than the upper limit. At least, a search though mpfit shows that the line that prints the error you are getting is associated with this problem (line 3093 in the 1.79 version of mpfit).
>
>
>
> Can you provide the parinfo structure (well, at least the part that deals with the limits) you are using?


Phillip,

Thank you for the reply. Below is the parinfo structure. The k1,k2,and k4 rasters are the minimum and maximum parameter limits for those 3 parameters while the other two parameters don't vary in space and so are hard-coded.

Perhaps I will recheck my math for the creation of those limits, Thank you for the information.

-Nate

start = fltarr(5)
result = fltarr(ns,nl, 5)
for lines = 0, 999 do begin
for samples = 0, 999 do begin
pi = replicate({fixed:0, limited:[0,0], limits:[0.D,0.D]},5)
pi(0).limited(*) = 1
pi(0).limits(*) = reform(k1[samples, lines, *])

pi(1).limited(*) = 1
pi(1).limits(*) = reform(k2[samples, lines, *])

pi(2).limited(*) = 1
pi(2).limits(0) = 3
pi(2).limits(1) = 30

pi(3).limited(*) = 1
pi(3).limits(*) = reform(k4[samples, lines, *])

pi(4).limited(*) = 1
pi(4).limits(0) = 1
pi(4).limits(1) = 20

start[0] = reform(k1[samples, lines, 0])
start[1] = reform(k2[samples, lines, 0])
start[2] = 3
start[3] = reform(k4[samples, lines, 0])
start[4] = 1
error = [1,1,1,1,1,1,1,1,1,1,1]
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Most Important and urgent_clipping out a portion of image
Next Topic: Plot colors

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

Current Time: Sat Oct 11 00:16:29 PDT 2025

Total time taken to generate the page: 1.03996 seconds