Linux Commands Examples

A great documentation place for Linux commands

fitstopnm

convert a FITS file into a portable anymap


see also : pnmtofits - pnmflip

Synopsis

fitstopnm [-image N] [-noraw] [-scanmax] [-printmax] [-min f] [-max f] [FITSfile]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
*.hips | *.hips.* )
hipstopgm "$file"
;;
*.fits | *.fits.* )
fitstopnm "$file"
0
source
            
fstopgm "$file"
;;
hips )
hipstopgm "$file"
;;
fits )
fitstopnm "$file"
0
source
            
fits )
fitstopnm "$file"
;;
mtv )
mtvtoppm "$file"
;;
qrt )
qrttoppm "$file"

description

Reads a FITS file as input. Produces a portable pixmap if the FITS file consists of 3 image planes (NAXIS = 3 and NAXIS3 = 3), a portable graymap if the FITS file consists of 2 image planes (NAXIS = 2), or whenever the -image flag is specified. The results may need to be flipped top for bottom; if so, just pipe the output through pnmflip -tb.

options

The -image option is for FITS files with three axes. The assumption is that the third axis is for multiple images, and this option lets you select which one you want.

Flags -min and -max can be used to override the min and max values as read from the FITS header or the image data if no DATAMIN and DATAMAX keywords are found. Flag -scanmax can be used to force the program to scan the data even when DATAMIN and DATAMAX are found in the header. If -printmax is specified, the program will just print the min and max values and quit. Flag -noraw can be used to force the program to produce an ASCII portable anymap.

The program will tell what kind of anymap is writing. All flags can be abbreviated to their shortest unique prefix.

references

FITS stands for Flexible Image Transport System. A full description can be found in Astronomy & Astrophysics Supplement Series 44 (1981), page 363.


see also

pnmtofits , pgm, pnmflip


author

Copyright (C) 1989 by Jef Poskanzer, with modifications by Daniel Briggs (dbriggs[:at:]nrao[:dot:]edu) and Alberto Accomazzi (alberto[:at:]cfa.harvard[:dot:]edu).

How can this site be more helpful to YOU ?


give  feedback