View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

moveheader

douglas brenner wrote on Sep 15, 2008

I have a fits file with the necessary header information in fits[0] and the image in fits[1].

I tried moveheader test.fits test.fits[1] new.fits[0, overwrite] but without luck.

thanks
ftp://ftp.amnh.org/pub/people/nzimmerman/downloads/Proj1640/test.fits

Mike Fitzpatrick wrote on Sep 15, 2008

I'm not quite sure what your intent is here, are you trying to turn this from a MEF into a simple FITS image and preserve the header? If so, something like

cl> imcopy test[1,inherit+] new.fits


will do the trick.

MOVEHEADER is geared towards GEIS images but even so in your example you're asking for the header from the MEF (the whole thing??), the pixels from extension 1, and the result back in the PHU. Anyway, let me know if the above doesn't solve your problem.

Cheers,
-Mike

douglas brenner wrote on Sep 15, 2008

I don't know what I'd do without you. thanks.

Last post on Sep 15, 2008