DOKK / manpages / debian 12 / wcstools / setpix.1.en
setpix(1) General Commands Manual setpix(1)

setpix - Set FITS or IRAF image values

setpix [-vn] file.fts [x_range y_range value] [@valuefile]

Set a specified pixel or range of pixels in a FITS or IRAF image to a specified value. More than one range of pixels and values may be specified on one command line. A file of xrange yrange value triplets may be used to set multiple regions at once. The image may be overwritten or a new image created.

Name of IRAF image header file or FITS file. This must be present.
@coordfile
Name of file containing lines of the format
xrange yrange value where xrange and yrange are of the format n or n-n or n,n,n or n-n,n-n and value my be integer or floating point. value will be converted to the type of the image. If a range is 0, the entire row or column specified by the other non-zero range will be set to the indicated value. If both ranges are zero, the entire image will be set to the specified value. New in version 2.6.4.
Image coordinate x and y ranges and the value to which that region will be set. Either one of these triplets or a file of triplets, specified by @filename, must be present. xrange and yrange are of the format n or n-n or n,n,n or n-n,n-n and value my be integer or floating point. value will be converted to the type of the image. If a range is 0, the entire row or column specified by the other non-zero range will be set to the indicated value. If both ranges are zero, the entire image will be set to the specified value. Ranges new in version 2.6.4.
Add constant to pixels
Divide pixels by constant
List each line which is dropped
Multiply pixels by constant
Write the output to a new file which is named by inserting an e before the file extension. The new file is always written to the current working directory.
Subtract constant from pixels
Print more information about the process

Jessica Mink, SAO (jmink@cfa.harvard.edu)

WCSTools 6 July 2001