Welcome to iraf.net Sunday, May 12 2024 @ 04:45 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Phot with lists Help
   
astrojake
 02/23/2011 05:40AM (Read 1359 times)  
+----
Newbie

Status: offline


Registered: 02/22/2011
Posts: 1
Hello,
I'm doing aperture photometry with phot on iraf. I want to do the following:phot <images> <coordfile> fwhm=<""> ann=<""> dann=<""> aper=<"">I know it is possible to do this with a list of images with ll the same values of fwhm,ann, dann,and apper. I was wondering if there was a way I could do this with a list to have different value of fwhm,ann,dann,and aper for each image. Essentially I want a list for the images, fwhm, ann, dann, and aper. Thank you for all your help. Jake

 
Profile Email
 Quote
fitz
 02/23/2011 05:40AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
To do what you want you would need to write a script that processes a list of the filenames and values. For example, if you have a file containing lines such as
1:48E5035926 Formatted Code
image.fits coords.txt  2.5 5.0 1.0 3[/code:1:48e5035926]

You could loop over a list of these with something like

[cpde]
string   img, coord, aper
real      fwhm, ann, dann

list = "values.txt"
while (fscan (list, img, coord, fwhm, ann, dann, aper) != EOF) {
   phot (img, coord, fwhm=fwhm, ann=ann, dann=dann, aper=aper)
}
 
For more on scripts see https://iraf.net/irafdocs/script/

 
Profile Email
 Quote
   
Content generated in: 0.09 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