Welcome to iraf.net Tuesday, May 21 2024 @ 07:19 AM GMT
Cold |
03/13/2008 12:02PM (Read 3115 times)
|
|
|
Status: offline
Registered: 06/01/2007
Posts: 8
|
hi,
i changed the fits file extentions to .imh with the command
rfits *.fit "" junk old+
and now i need to chage this .imh files to fits again. what do i have to write?thanks for your help
|
|
|
|
valdes |
03/13/2008 12:02PM
|
|
|
Status: offline
Registered: 11/11/2005
Posts: 728
|
Hi,You can use[code:1:aca426bcc4]
imcopy junk.imh newfile.fits
[/code:1:aca426bcc4]While it is possible to use the same root name in two formats it is strongly not recommended because of the possiblity of confusion.Yours,
Frank Valdes
|
|
|
|
Cold |
03/13/2008 12:02PM
|
|
|
Status: offline
Registered: 06/01/2007
Posts: 8
|
hi again,
it's ok with 1 frame but i wrote the command
cl>imcopy hkv1*.imh hkv1*.fit
ERROR: Number of input and output images not the same
as i read in the help section for coping several images you have to write
cl>imcopy image1,image2,image3 a,b,c
but i have to change 250 imh images' parameters to fit.
What do i have to do?
thanks for your help
|
|
|
|
fitz |
03/13/2008 12:02PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
You get the message because the 'hkv1*.imh" expands automatically to the list of existing files, but 'hkv1*.fit" doesn't exist yet and so is empty. You can actually change this on the fly using the '%' edit operator. For example[code:1:e62115412d]cl> imcopy hkv1*.imh hkv1*.%imh%fits%[/code:1:e62115412d]This expands the list of .imh filenames but edits the 'imh' for 'fits' to change the extension and thus copy the image.Note Frank's caution: You'll now have both an 'hkv1.imh' and 'hkv1.fits' in the same directory and so referring to an image simply as 'hkv1" will be ambiguous (you'll see an error). Once you do the copy, move the .fits files or "imdel *.imh" to delete all the .imh images.Cheers,
-Mike
|
|
|
|
| |
|
Content generated in: 0.18 seconds |
|