Quote by: fitzI think the tasks you need are TEXT2MASK to create an image mask from your pixel positions, and then IMEXPR to apply the mask to set the constant value.
See the TEXT2MASK help page, or do a "cl\$this->_split2($m[0]) refer mask" to find other masking tasks, for info on how to create the mask file. To apply the mask you could call IMEXPR as something like
cl\$this->_split2($m[0]) imexpr "(b ? 3.14 : a)" fixed.fits a=bad.fits b=mask.pl
The expression will replace every pixel with a non-zero mask value (in mask.pl created with TEXT2MASK) with the constant 3.14, otherwise it will use the input image (bad.fits).
Oh wow. I had already created a bad pixel mask earlier using text2mask and the imexpr command you recommended worked like an absolute charm. Thanks so much for the help