Welcome to iraf.net Thursday, March 28 2024 @ 02:45 PM GMT
CosmicLettuce |
02/23/2014 12:28PM (Read 1911 times)
|
|
|
Status: offline
Registered: 02/08/2014
Posts: 11
|
Hi --
I have a number of images that I'd like to fit with a 2d gaussian function and then subtract. How do I do that? I can provide samples if necessary upon request.
Peace, CL
|
|
|
|
fitz |
02/23/2014 03:36PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
See the FITTING package in STSDAS, particularly the N2GAUSSFIT task. STSDAS is an external package that needs to be installed separately, but this can be done easily using the commands (in v2.16):
% cd $iraf/extern
% ./configure # only needs to be done once
% make stsdas
The next time you login STSDAS should be available.
|
|
|
|
CosmicLettuce |
02/23/2014 03:48PM
|
|
|
Status: offline
Registered: 02/08/2014
Posts: 11
|
Thanks -- already have stsdas installed and found the n2gaussfit task already, too. Glad to know I was at least finding the correct task, although I'm not sure exactly how to proceed.
I guess I need a bit of hand-holding to walk me through the process of fitting the model to the data and then doing the subtraction. For instance, I see that n2gaussfit computes all of the parameters for the model, but I don't see how it makes an "image" that I can then subtract from my data.
Regards, CL
|
|
|
|
CosmicLettuce |
02/23/2014 03:51PM
|
|
|
Status: offline
Registered: 02/08/2014
Posts: 11
|
I assume I use the 'function' task, but I'm a bit lost as to how to properly use it.
|
|
|
|
fitz |
02/23/2014 03:59PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
I think that only works one row at a time. Try using the PRFIT task in FITTING to print the parameters of the fit, then enter these in the MKGAUSS task (in STSDAS.TOOLBOX.IMGTOOLS) to create a 2-D Gaussian image, then finally IMARITH to subtract it from the original.
|
|
|
|
CosmicLettuce |
02/24/2014 01:10AM
|
|
|
Status: offline
Registered: 02/08/2014
Posts: 11
|
Great. That, at least, gets me to where I need to be.
Thanks for the guidance.
Regards, CL
|
|
|
|
| |
|
Content generated in: 0.17 seconds |
|