.fit vs .fits
Mike Potter wrote on Dec 29, 2012
Is there a setting to have IRAF output FITS files with a ".fit" extension rather than ".fits"?
Thanks!
Mike
Thanks!
Mike
Mike Fitzpatrick wrote on Dec 29, 2012
Sure. The extensions are controlled by the 'imextn' iraf environment variable which is set globally in the hlib$zzsetenv.def file, or can be uncommented and reset in your login.cl, or set on the command line. The default value is
where the 'fxf' refers to the FITS kernel. By putting the "fit" before the "fits" you'll use ".fit" as default extension for this kernel, e.g. "fxf:fit,fits".
Note the 'imtype' variable controls the default image type created for filenames without an extension, it will normally says 'fits' but this only indicates the file type, the 'imextn' options will control the actual extension. For example,
will create a 'foo.fit' file.
set imextn = "oif:imh fxf:fits,fit plf:pl qpf:qp stf:hhh,??h"where the 'fxf' refers to the FITS kernel. By putting the "fit" before the "fits" you'll use ".fit" as default extension for this kernel, e.g. "fxf:fit,fits".
Note the 'imtype' variable controls the default image type created for filenames without an extension, it will normally says 'fits' but this only indicates the file type, the 'imextn' options will control the actual extension. For example,
cl> set imextn = "oif:imh fxf:fit,fits plf:pl qpf:qp stf:hhh,??h"
cl> imcopy dev$pix foo
will create a 'foo.fit' file.
Mike Potter wrote on Dec 29, 2012
Thanks Mike!
Mike
Mike
Last post on Dec 29, 2012