FIIGN(1)
π FIIGN(1) π
okay bestie, gather round, because this one is literally the backstage pass to FITS image masks and i am obsessed π
β¨ NAME β¨
fiign β low-level manipulation of masks associated to FITS images π
πΈ SYNOPSIS πΈ
fiign [options and operations] [<input>] [-o|--output <output>]
π¦ DESCRIPTION π¦
so like, in the FITS image data processing world, "masks" are per-pixel associated meta-data, and they represent the state of that given pixel. that's it, that's the vibe. and generally? pixels that are somehow "bad" get marked with these masks so you can exclude them or only use them with caution during further processing. no cap.
these masks can either mark the initial state of the given pixels β like, pixels can be marked as hot or bad pixels, which describes the detector itself and not the individual scientific or calibration frames β or masks can be added during the subsequent steps of the processing (think saturated pixels, "outer" pixels). both. it's giving layered.
the purpose of the fiign program is to give you low-level access to these masks. like, yes, the operations on the images automatically yield the respective operations on the masks (if an image is transformed or trimmed, the associated mask will also be transformed or trimmed with the same geometry, slay), but with this program the masks can be manipulated arbitrarily. main character energy fr fr π
β¨ OPTIONS β¨
π General options:
-h,--helpβ gives you the general summary about the command line options. your little cheat sheet π«Ά--long-help,--help-longβ gives a detailed list of command line options. the extended cut.--wiki-help,--help-wiki,--mediawiki-help,--help-mediawikiβ gives a detailed list of command line options in Mediawiki format. yes bestie, wiki-flavoured.--version,--version-short,--short-versionβ gives some version information about the program.-i,--input <image file>β name of the input FITS image file.-o,--output <image file>β name of the output FITS image file (and yes, it can be the same as the input image file, live your truth).
π Generic pixel masking options:
-n,--ignore-nonpositiveβ mask pixels with non-positive values.-g,--ignore-negativeβ mask pixels with negative values.-z,--ignore-zeroβ mask pixels with a value of zero.--ignore-maskβ completely ignore mask associated to the input image. just. forget it exists π-M,--input-mask <image file>β input mask file to co-add to output image mask.-a,--apply-maskβ apply the mask to the image, i.e. set the pixel values with non-null mask to be zero (by default, or any other value specified by-m|--mask-value).-m,--mask-value <value>β override the default pixel value (zero) during explicit marking of masked pixels (see also-a|--apply-mask).
π₯ Marking saturated pixels:
-s <saturation-level>β saturation level.-S <image file>β image containing saturation level on a per pixel basis.--leak-left-right,--leak-lower-upper,--leak-anyβ readout direction, i.e. orientation of "blooming" stripes.
π Mask conversion and expansion:
--convert <match>:<value>:<reset>:<set>β convert masks: from a mask which matches to the<match>:<value>pair, i.e. the masks with the type of<match>have a value of<value>, the masks specified by<reset>are cleared and the masks specified by<set>are set. the<match>,<value>,<reset>and<set>tags are comma-separated list of mask names (see below, bestie, keep scrolling).-x,--expand <size>β expands the mask with the specified size. applied after all of the previous steps were performed. order matters, don't skip leg day.
π Additional mask layers:
-q,--mask-block block:<mask>:<x1>,<y1>:<x2>,<y2>β add a rectangular masked area with the specified mask<mask>and with the specified coordinates (<x1>,<y1>: lower-left corner,<x2>,<y2>: upper-right corner, inclusive). inclusive!! we love an inclusive rectangle.-q,--mask-block circle:<mask>:<xc>,<yc>:<radius>β add a circular masked area with the specified mask<mask>and with the specified centroid coordinates<xc>,<yc>and radius<radius>.-q,--mask-block pixel:<mask>:<x>,<y>β add a masked pixel with the specified mask<mask>to the specified coordinates<x>,<y>.-q,--mask-block line:<mask>:<x1>,<y1>:<x2>,<y2>β add a masked line with the specified mask<mask>connecting the points<x1>,<y1>and<x2>,<y2>.
π Mask names:
noneβ no mask at allclearβ same asnonefaultβ mask for faulty pixelshotβ mask for hot pixelscosmicβ mask for marking cosmic pixelsouterβ pixels originating from out of image areasoversaturatedβ oversaturated pixelsbloomedβ "bloomed" pixels (i.e. not oversaturated but neighbouring pixel(s) may be so)saturatedβ oversaturated or bloomed pixelsinterpolatedβ pixels having an interpolated value (e.g. hot or cosmic pixels are replaced by the average value of the surrounding pixels).
π REPORTING BUGS π
report bugs to <apal@szofi.net>, see also https://fitsh.net/.
π COPYRIGHT π
Copyright Β© 1996, 2002, 2004-2008, 2010-2016, 2018-2020; Pal, Andras <apal@szofi.net>
okay that's the whole thing, you ate that. this was fiign 0.9.4 (2021.01.24), from way back in January 2021 π go forth and mask responsibly, bestie π§β¨π
π¦ where this page comes from
- debian bookworm: fitsh 0.9.4-1 Β· GPL-3.0-or-later
- debian trixie: fitsh 0.9.4-1 Β· GPL-3.0-or-later
- ubuntu jammy: fitsh 0.9.4-1 Β· GPL-3.0-or-later
- ubuntu noble: fitsh 0.9.4-1 Β· GPL-3.0-or-later
- ubuntu resolute: fitsh 0.9.4-2 Β· GPL-3.0-or-later
- ubuntu stonking: fitsh 0.9.4-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms