HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fitstopnm — Convert a Flexible Image Transport System (FITS) file to a PNM image. See also: `pamtofits`. More in

Submitted by: @import:tldr-pages··
0
Viewed 0 times
fitstopnmcommandconvertcliimagetransportflexiblesystem

Problem

How to use the fitstopnm command: Convert a Flexible Image Transport System (FITS) file to a PNM image. See also: pamtofits. More information: <https://netpbm.sourceforge.net/doc/fitstopnm.html>.

Solution

fitstopnm — Convert a Flexible Image Transport System (FITS) file to a PNM image. See also: pamtofits. More information: <https://netpbm.sourceforge.net/doc/fitstopnm.html>.

Convert a FITS file to a PNM image:
fitstopnm {{path/to/file.fits}} > {{path/to/output.pnm}}


Convert the image on the specified position of the third axis in the FITS file:
fitstopnm {{[-i|-image]}} {{z_position}} {{path/to/file.fits}} > {{path/to/output.pnm}}

Code Snippets

Convert a FITS file to a PNM image

fitstopnm {{path/to/file.fits}} > {{path/to/output.pnm}}

Convert the image on the specified position of the third axis in the FITS file

fitstopnm {{[-i|-image]}} {{z_position}} {{path/to/file.fits}} > {{path/to/output.pnm}}

Context

tldr-pages: common/fitstopnm

Revisions (0)

No revisions yet.