Welcome to iraf.net Wednesday, May 01 2024 @ 11:04 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Stuck on rfits
   
andrewkbradshaw
 05/31/2008 01:15AM (Read 2038 times)  
+----
Newbie

Status: offline


Registered: 05/29/2008
Posts: 1
Hello, big IRAF newby here. I'm trying to do the exercises in the iraf.noao.edu ftp archive and I'm stuck, sadly, on the first part of the first exercise. Hopefully my question is really basic and easily fixed.The introduction asks us to:
"Before proceeding further we need to unpack the images that will be used during
this exercise. This can be done using the RFITS task. New files will be
created with a .imh extension - these files are in the IRAF image format and
consist of a header (.imh) and pixel (.pix) file for each image. cl> dir # list the files in the current directory
cl> unlearn rfits
cl> rfits fintro* "" junk old+ "From the dir command I get the files they provided, of course, which are fintro001 and fintro002 . Then the rfits command supposedly gives back an .imh file and .pix file, but all I receive back are im010.fits and im011.fits in the same directory.Any insight at all? I'm sure any tidbits will help me very much; unfortunately I couldn't find anything already posted about it. Could the problem be that I'm doing the exercises for 2.11 with IRAF version 2.14? I couldn't find an exercise for 2.14.Thanks,
Andrew

 
Profile Email
 Quote
fitz
 05/31/2008 01:15AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
In V2.14 the default imtype was reset to 'fits' meaning that all new images would be FITS. To explicitly use 'imh' you need to either specify the file extension when creating the image (e.g. "imcopy dev$pix foo.imh"), or you can [code:1:2b997c84cc]cl> reset imtype = "imh" ; flpr 0 # zero, not oh[/code:1:2b997c84cc]This can also be done in your login.cl file.Note that FITS images can be used directly provided they have an extension. The tutorial images don't have an explicit extension, but you can add one using something like[code:1:2b997c84cc]cl> rename fsp* fits field=extn[/code:1:2b997c84cc]With that done, you can use the FITS files directly in the exercises.Cheers,
-Mike

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