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

Home » Public Forums » archive » How to use mpfitfun.pro for fitting?
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: How to use mpfitfun.pro for fitting? [message #93374 is a reply to message #93373] Mon, 27 June 2016 14:23 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Monday, June 27, 2016 at 11:54:16 AM UTC-4, Meegle_Jade wrote:
> So where should I write the function? Should I save in the dothefit.pro textfile or should I save the function seperately in another text file?

Maybe it's worth starting with the tutorial.
https://www.physics.wisc.edu/~craigm/idl/mpfittut.html
See if you can master that first before going to your more complicated problem.

But yes, *typically* one writes the user fitting function as a stand-alone file. David Fanning's tips can help:
http://www.idlcoyote.com/tips/namefiles.html

It's also possible to put everything in an IDL "script" file that you can use ".RUN" with. The only trick is that the fitting function has to be at the top, and then the executable statements appear last. I do this all the time.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How reload (re-import) a modified Python module through the IDL to Python bridge ?
Next Topic: Bug in legend() for horizontal orientations

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

Current Time: Wed Oct 08 19:00:10 PDT 2025

Total time taken to generate the page: 0.00422 seconds