LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sbigtopgm

convert an SBIG astronomical CCD image to PGM

TLDR

Convert an SBIG image to PGM
$ sbigtopgm [image.sbig] > [image.pgm]
copy
Read from stdin in a pipeline
$ cat [image.sbig] | sbigtopgm > [image.pgm]
copy
Convert and stretch contrast with pnmnorm
$ sbigtopgm [image.sbig] | pnmnorm > [stretched.pgm]
copy
Convert and encode as PNG
$ sbigtopgm [image.sbig] | pnmtopng > [image.png]
copy

SYNOPSIS

sbigtopgm [sbigfile]

DESCRIPTION

sbigtopgm reads an astronomical CCD image in the native SBIG (Santa Barbara Instrument Group) Type 3 file format and writes the pixel values out as a PGM (portable graymap) image on standard output. When no filename is given, the program reads from standard input.The SBIG Type 3 format is produced by the CCDOPS software bundled with SBIG ST-series CCD cameras. It consists of an ASCII header (with flexible capitalization and tolerant line endings) followed by a 16-bit grayscale pixel array. sbigtopgm preserves the full 16-bit precision of the source, so the output PGM has a maxval matching the original ADU range. Part of the Netpbm toolkit.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

CAVEATS

There is no pgmtosbig going the other way in upstream Netpbm. The output is always 16-bit even when the camera reports less precision. Astronomy-specific FITS files should be converted with fitstopnm instead.

HISTORY

sbigtopgm was contributed to Netpbm to support amateur and professional astronomy workflows on Unix systems where SBIG's own CCDOPS software was not available. It has remained largely unchanged since its addition.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid