FITSPNG(1)
β¨ FITSPNG(1) β¨
okay bestie, gather round, because this is the User Commands glow-up of fitspng and it's lowkey iconic π
π NAME π
fitspng β the FITS to PNG converter, and yes she does exactly what it says on the tin, no cap.
πΈ SYNOPSIS πΈ
fitspng [options] file(s)
π¦ DESCRIPTION π¦
So fitspng is a utility, and her whole job is converting images in the astronomical FITS format into PNG format. That's it, that's the assignment, and she eats every time π
FITS format is a general purpose astronomical format which stores measurements of physical quantities. FITS images represent an angular distribution of captured photon events, or intensity of light β basically the receipts of what the sky was doing β¨
fitspng provides visualisation of FITS images by converting them to PNG format.
The detailed description can be found on the page: https://integral.physics.muni.cz/fitspng β go read it, iykyk π
π OPTIONS π
okay so here's the whole menu, and no we are NOT skipping any of them, every single one matters:
-f[asinh|snlike|sqr|tanh|photo] β scale output intensities by the specified profile. pick your vibe:asinh,snlike,sqr,tanh, orphotoπ-rq,v β relative pre-scaling mode. here q and v represent the quantiles of a background (sky) and the relative sensitivity respectively π«Ά-lB,s β absolute pre-scaling mode. B and s are directly used for scaling of the output frame, no chill, just numbers π-Sc β the colour saturation gets multiplied by the given ratio c. this one's for colour FITS only, so don't come for her if you're working in grey π-nY,w β when used, it switches on a mode which emulates human's night vision. it is useful only for colour FITS π (scotopic girlies rise)-ss β shrink image: scale down the size of image by the specified factor s, as a (non-zero) positive integer number. if the s factor is greater than one, any output pixel is constructed as the arithmetic mean ofs*sinput pixels. so yes, it's doing actual math, it's giving β¨averagingβ¨-oβ specify an output file name, valid only if a single file is passed.
if this switch is omitted, the output filename is determined by modification of input filenames: suffixes, like *.fits, are replaced by *.png, and the directory path is removed. this approach leaves the original data untouched, and the results are stored in the current working directory. queen behaviour, honestly π
-B[8|16] β8bites per pixel of colour (grey) depth of output. this is the default.16bites per pixel of colour (grey) depth of output.
heads up bestie: with 16 there is frequently a problem with additional rendering. most utilities don't work with this colour depth correctly. on the other side, 16 bit per pixel images have the photometric content saved. so it's a trade-off, choose wisely π
-vβ print additional info during processing. she's chatty, we love that π¬--helpβ show summary of options.--versionβ display software version.
π EXAMPLES π
convert an image from FITS to PNG:
$ fitspng -o grey.png grey.fits
emulate human's night vision:
$ fitspng -n 1e6,1 -o scotopic.png colour.fits
emulate classical photography sensitivity function (density curve):
$ fitspng -f photo -o photo.png colour.fits
create semi-grey image:
$ fitspng -S 0.2 -o reduced.png colour.fits
select the specified band from colour FITS (with help of FITS file name extension):
$ fitspng -o green.png "colour.fits[1]"
create thumbnails:
$ fitspng -s 10 *.fits
π AUTHOR π
Filip Hroch <hroch@physics.muni.cz> β absolute legend, thank you for your service π«‘π
β SEE ALSO β
rawtran(1)- [1] https://integral.physics.muni.cz/fitspng
- [2] http://www.libpng.org/pub/png/
- [3] https://integral.physics.muni.cz/rawtran
- [4] https://munipack.physics.muni.cz/
and that's the whole page, bestie!! π this one comes to you from Fitspng, January 2022 β go make something pretty with it, mwah πβ¨π¦
π¦ where this page comes from
- debian bookworm: fitspng 2.0-1+b1 Β· GPL-3.0-or-later
- debian trixie: fitspng 2.0-2+b1 Β· GPL-3.0-or-later
- ubuntu noble: fitspng 2.0-2build3 Β· GPL-3.0-or-later
- ubuntu questing: fitspng 2.0-2build3
- ubuntu resolute: fitspng 2.0-2build4 Β· GPL-3.0-or-later
- ubuntu stonking: fitspng 2.0-2build4 Β· 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