Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pnmtofits(1) [minix man page]

pnmtofits(1)                                                  General Commands Manual                                                 pnmtofits(1)

pnmtofits - convert a portable anymap into FITS format SYNOPSIS
pnmtofits [-max f] [-min f] [pnmfile] DESCRIPTION
Reads a portable anymap as input. Produces a FITS (Flexible Image Transport System) file as output. The resolution of the output file is either 8 bits/pixel, or 16 bits/pixel, depending on the value of maxval in the input file. If the input file is a portable bitmap or a portable graymap, the output file consists of a single plane image (NAXIS = 2). If instead the input file is a portable pixmap, the output file will consist of a three-plane image (NAXIS = 3, NAXIS3 = 3). A full description of the FITS format can be found in Astronomy & Astro- physics Supplement Series 44 (1981), page 363. OPTIONS
Flags -min and -max can be used to set DATAMAX, DATAMIN, BSCALE and BZERO in the FITS header, but do not cause the data to be rescaled. BUGS
FITS uses signed data, and this program outputs unsigned values. If you run into this problem, you might use "-min 32768". SEE ALSO
fitstopnm(1), pgm(5) AUTHOR
Copyright (C) 1989 by Wilson H. Bent (, with modifications by Alberto Accomazzi ( 5 Dec 1992 pnmtofits(1)

Check Out this Related Man Page

fitstopnm(1)                                                  General Commands Manual                                                 fitstopnm(1)

fitstopnm - convert a FITS file into a portable anymap SYNOPSIS
fitstopnm [-image N] [-noraw] [-scanmax] [-printmax] [-min f] [-max f] [FITSfile] 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(1), pgm(5), pnmflip(1) AUTHOR
Copyright (C) 1989 by Jef Poskanzer, with modifications by Daniel Briggs ( and Alberto Accomazzi (alberto@cfa.har- 20 September 89 fitstopnm(1)
Man Page

2 More Discussions You Might Find Interesting

1. Advertise with Us

FITS - looking for AIX Admin in Vienna, VA (USA)

FITS is a computer consulting company based in Maryland. We are currently in need for two Sr. AIX Administrators. Must be a US citizen. Please send resume to mmalik@FitsInc.Net or contact 301-667-0991. Pay is excellent. Note: Ad approved until November 14, 2009 (0 Replies)
Discussion started by: mam0142
0 Replies

2. AIX

Read input data within a specified period of time

Hi All, I am working on a script which requires an input from user within one 1 min. So if the user gives the required input within 1 min., it will execute on the basis of input provided by the user.Other wise it will execute on a default value(hard coded inside the script). Now, I am... (19 Replies)
Discussion started by: rajsharma
19 Replies

Featured Tech Videos