Welcome to iraf.net Thursday, March 28 2024 @ 02:45 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 2D Gaussian
   
CosmicLettuce
 02/23/2014 12:28PM (Read 1911 times)  
+----
Newbie

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

 
Profile Email
 Quote
fitz
 02/23/2014 03:36PM  
AAAAA
Admin

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.

 
Profile Email
 Quote
CosmicLettuce
 02/23/2014 03:48PM  
+----
Newbie

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

 
Profile Email
 Quote
CosmicLettuce
 02/23/2014 03:51PM  
+----
Newbie

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.

 
Profile Email
 Quote
fitz
 02/23/2014 03:59PM  
AAAAA
Admin

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.

 
Profile Email
 Quote
CosmicLettuce
 02/24/2014 01:10AM  
+----
Newbie

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

 
Profile Email
 Quote
   
Content generated in: 0.17 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login