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

Home » Public Forums » archive » Re: Help in Astronomy /curvefitting
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
Re: Help in Astronomy /curvefitting [message #84244] Sun, 12 May 2013 00:43
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Saturday, May 11, 2013 8:10:27 AM UTC-4, mrugank...@gmail.com wrote:
> I'm a 4th year B.Tech student doing an astronomy project based on HERSCHEL data. I have hit a wall in IDL programming.
>
> I have 3 images of the same pixel grid size which have to be fitted in a user defined function. I have to use a chi squared approximation to get the values of the unknown parameters of the function. Then I have to plot contour maps of the unknown parameters separately. How do I do he above steps ?
>
> I have been trying different fuctions for the last 3 months to no avail. I would be glad if you could help.

Here are several questions that I don't really need to see the answers to, but may help you understand what you need to answer for yourself.

You say you have been trying different functions. So you can choose whatever function you want? Does it need to be motivated by the physics of the problem?

Do you know what function you will use? Is it a gaussian? Lorentzian?

Do you know how you will judge goodness of fit? People will often say "chi-square," but you should be able to what the data variable is and what the error variable is. And, if you have three images, will they be fit jointly, or separately?

Do you understand what the variables are? The "independent" variables are probably the coordinates of each pixel, but which coordinates? RA/Dec? Do you know how to compute the coordinates? Also, the parameters. Do you understand each of the parameters that your function depends on?

Craig
Re: Help in Astronomy /curvefitting [message #84246 is a reply to message #84244] Sat, 11 May 2013 09:11 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On 5/11/13 7:10 AM, mrugankakashyap@gmail.com wrote:
> I'm a 4th year B.Tech student doing an astronomy project based on HERSCHEL data. I have hit a wall in IDL programming.
>
> I have 3 images of the same pixel grid size which have to be fitted in a user defined function. I have to use a chi squared approximation to get the values of the unknown parameters of the function. Then I have to plot contour maps of the unknown parameters separately. How do I do he above steps ?
>
> I have been trying different fuctions for the last 3 months to no avail. I would be glad if you could help.
>

Many of us are big fans of Craig Markwardt's curve fitting routines:

http://www.physics.wisc.edu/~craigm/idl/fitting.html

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help in Astronomy /curvefitting
Next Topic: Re: TIFF Read/Write Bug?

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

Current Time: Wed Oct 08 11:41:21 PDT 2025

Total time taken to generate the page: 0.00534 seconds