setpix(1)
πΈ setpix β like, the manual page β¨
okay bestie, welcome to setpix, a little icon from the WCSTools fam. it's a General Commands Manual situation and honestly? it just sets pixels. but it sets them so well. π
π NAME π
setpix β set FITS or IRAF image values. that's it, that's the whole job, and she does it flawlessly. π
π¦ SYNOPSIS π¦
setpix [-vn] file.fts [x_range y_range value] [@valuefile]
π DESCRIPTION π
so here's the vibe: you take one specific pixel, or a whole range of pixels, in a FITS or IRAF image, and you set it to a value you pick. easy. iconic. no cap.
and like β you're not limited to one range, okay? you can put more than one range-of-pixels-plus-value on a single command line. go off. multiple regions, one command, main character energy.
you can also hand it a file full of xrange yrange value triplets and set a whole bunch of regions all at once. obsessed. π«Ά
and the image itself? you get to choose β overwrite the original, or create a new image entirely. your call, bestie.
β¨ OPTIONS β¨
filenameβ the name of your IRAF image header file or FITS file. this one is required, like literally must be there, no skipping. π@coordfileβ the name of a file where every line is formatted like this:
xrange yrange value
where xrange and yrange follow the format n or n-n or n,n,n or n-n,n-n, and value can be an integer or a floating point number. value gets converted to the type of the image. here's the tea on ranges: if a range is 0, then the entire row or column specified by the other non-zero range gets set to that value. and if both ranges are 0? the entire image gets set to the specified value. πβ¨
new in version 2.6.4. she's fresh.
xrange yrange valueβ the image coordinate x and y ranges, plus the value that region gets set to. either one of these triplets or a file of triplets given by@filenamehas to be present β pick one, you can't have neither.xrangeandyrangeare in the formatnorn-norn,n,norn-n,n-n, andvaluecan be an integer or a floating point number.valuegets converted to the type of the image. same range rules as above: a range of0means the entire row or column named by the other non-zero range gets set to that value, and if both ranges are0, the whole entire image gets set to the specified value. π so powerful.
ranges new in version 2.6.4.
-a<number>β add a constant to the pixels. math queen. β-d<number>β divide the pixels by a constant. β-iβ list each line which is dropped. keeping receipts, fr fr.-m<number>β multiply the pixels by a constant. βοΈ-nβ write the output to a new file, named by inserting anebefore the file extension. and heads up: the new file is always written to the current working directory. no exceptions, bestie. π-s<number>β subtract a constant from the pixels. β-vβ print more information about the process. she's chatty and we love that for her. π£οΈπ¬
π AUTHOR π
Jessica Mink, SAO (jmink@cfa.harvard.edu). legend behaviour, honestly.
okay that's the whole page, mwah π β this was setpix(1) from WCSTools, dated 6 July 2001. thanks for coming to my TED talk, now go set some pixels, you gorgeous genius π§π
π¦ where this page comes from
- debian bookworm: wcstools 3.9.7-1 Β· GPL-2.0-only
- debian trixie: wcstools 3.9.7-1.1+b1 Β· GPL-2.0-only
- epel 9: wcstools 3.9.7-2.el9 Β· GPLv2+
- fedora 43: wcstools 3.9.7-12.fc43 Β· GPL-2.0-or-later
- fedora 44: wcstools 3.9.7-13.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: wcstools 3.9.6-1 Β· GPL-2.0-only
- ubuntu noble: wcstools 3.9.7-1.1build1 Β· GPL-2.0-only
- ubuntu questing: wcstools 3.9.7-2
- ubuntu resolute: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- ubuntu stonking: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms