View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

fixpix won’t use text file

Karen Kwitter wrote on Sep 14, 2010

Hi Mike and Frank,

I'm running v2.14 on an Intel Mac, trying fixpix (for the first time in a long while...), specifying the bad pixels in a text file (clean.dat) rather than an image. But pixfix fails with: ERROR: Cannot open image (clean.dat).

The examples indicates that a text file should work in place of an image for the "mask" parameter.

(I wound up using imedit, which changed all my MEF files into non-MEF files, so they can't be used with the gmos tasks I'd prefer.)

Anyway, thanks for the help!

Karen

Mike Fitzpatrick wrote on Sep 14, 2010

Hi Karen,

Could you please post your 'clean.dat' file and the FIXPIX parameters you used? There are no known bugs and the task should work as advertised.

Cheers,
-Mike

Karen Kwitter wrote on Sep 14, 2010

Hi Mike,

Here's the epar file:

PACKAGE = nmisc
TASK = fixpix

images = tgsN20091027S0216.fits[sci]
mask = clean.dat
linterp = )
cinterp = )
ninterp = )
constan= 0.)
mode = ql)

I tried with & without [sci] and also on a non-MEF file.

I'm not sure I understand linterp and cinterp use with a text file - I tried using various combinations of 1,2, and 3, but nothing has worked.

A typical clean.dat file is something like

215 217 1133 1135 <CR>

Thanks!
Karen

Mike Fitzpatrick wrote on Sep 14, 2010

Ahhh. You're using the FIXPIX task in the NMISC package which is the old version that doesn't take text files. Load the PROTO package and use that version, that's the one described in the help page.

-Mike

Karen Kwitter wrote on Sep 14, 2010

It works! (of course...)

Many thanks-
Karen

Last post on Sep 14, 2010