WCSTools programs

setpix
Examples

1. Set a specific pixel to a value
Set the pixel at (100,100) in test.fits to zero and write out the new file to teste.fits
setpix -n 100 100 0 test.fits
2. Set a row to a value
Set row 100 of test.fits to zero
setpix 0 100 0 test.fits
3. Set a square region to a value
Set a 10 by 10 box in test.fits to zero
setpix 51-60 51-60 0 test.fits
4. Set several regions in several files to a specific value
Use the file newval to change test.fits and test1.fits.
setpix @newval test.fits test1.fits
where newval contains
1 1 0
2 2 0
3 3 0
4 4 0
5-10 5-10 0

Last updated 17 September 2003 by Doug Mink

Telescope Data Center [setpix commands]