Welcome to iraf.net Friday, April 19 2024 @ 11:21 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Imarirth outputting an MEF
   
jbs045
 06/18/2015 03:43PM (Read 940 times)  
+----
Newbie

Status: offline


Registered: 06/18/2015
Posts: 1
I'm a Pyraf user, and I think that it may have something to do with my problem, but I am using imarith to multiply a constant by a non MEF fits file, and for whatever reason, it is outputting a MEF when I don't want to it. Here is my surrounding code:

PHP Formatted Code

iraf.datapars.readnoise=pyfits.getval(filesfull[i]+'.fits','RONOISE')
iraf.imarith (operand1= filesfull[i], op='*', operand2= trval, result= files[i]+'z.fits')
iraf.photpars.zmag = -2.5*math.log10(1.213*3.384638*math.pow(10,-5)/(280.9*trval))
iraf.daofind (image = files[i] + 'z.fits', output = files[i]+'z.coo')
iraf.phot (image=files[i] + 'z.fits', coords=files[i]+'z.coo', output= files[i]+'z.mag')
iraf.txdump (textfile= files[i]+'z.mag', fields = 'xc,yc,mag,merr,xerr,yerr', expr= 'merr<0.1', Stdout= files[i]+'z.txt')
 


Where trval is just a constant, and the code breaks on daofind, with the following error:

ERROR (1113, "FXF: must specify which FITS extension (r47124224/ch1/bcd/SPITZER_I1_47124224_0001_0000_1_cbcdz.fits)")

If there's any advice you can give, that would be wonderful!

 
Profile Email
 Quote
fitz
 06/30/2015 05:47PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I'm unable to reproduce this using the standard CL so it may be a pyraf issue. If you're still having problems then I'd suggest contacting the STScI help desk (help@stsci.edu) to see if it is a known problem. Does creating the filename strings outside of the task call change anything, e.g.

resname = files + 'z.fits'
iraf.imarith ( ......., result=resname)

Have you tried running the same imarith command under the CL with the same result?

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