1Fitstopnm User Manual(0)                              Fitstopnm User Manual(0)
2
3
4

NAME

6       fitstopnm - convert a FITS file into a PNM image
7
8

SYNOPSIS

10       fitstopnm  [-image=N]  [-scanmax] [-printmax] [-min=f] [-max=f] [-omax‐
11       val=N [FITSfile]
12
13       Minimum unique abbreviation of option is acceptable.  You may use  dou‐
14       ble  hyphens  instead  of single hyphen to denote options.  You may use
15       white space in place of the equals sign to separate an option name from
16       its value.
17
18
19

DESCRIPTION

21       This program is part of Netpbm(1).
22
23       fitstopnm  reads a FITS (Flexible Image Transport System) file as input
24       and produces a PPM image if the FITS file consists of  3  image  planes
25       (NAXIS = 3 and NAXIS3 = 3), or a PGM image if the FITS file consists of
26       2 image planes (NAXIS = 2), or if you specify the -image option.
27
28       Note that the PPM image is highly unlikely to be a true PPM  image,  as
29       it  is not normal for a FITS image to use the third axis as R, G, and B
30       components of the pixels.  The most common  interpretation  when  there
31       are  3  axes  is that the third one is time.  So the image is instead a
32       pseudo-PPM in which the three sample values of a pixel represent  some‐
33       thing  other  than  color  components, for example gray levels at three
34       instants (this variation on PPM is common in programs such as fitstopnm
35       that predate the PAM format).
36
37       If  you  work  with FITS images with 3 axes, you should probably always
38       use the -image option to avoid getting an unwanted pseudo-PPM image.
39
40       The program tells you what kind of PNM image it is writing.
41
42
43

OPTIONS

45       -image=N
46              This is for FITS files with three axes.  This option  says  that
47              the  third  axis  is for multiple images, and the option value N
48              tells which one you want.
49
50
51       -omaxval=N
52
53              This is the maxval that the output PNM image is to have.
54
55              By default, the maxval is the least possible to retain  all  the
56              precision  of the FITS input.  That means the difference between
57              the highest and lowest sample value in the input.  If the values
58              range  from  -5 to 100, for example, the default maxval would be
59              106 and each PNM sample value would correspond to one FITS  sam‐
60              ple value.
61
62              For  a  FITS input with floating point sample values, the preci‐
63              sion is essentially unlimited, so this is not possible.  In that
64              case, the default maxval is simply 255.
65
66              This  option  was new in Netpbm 10.39 (June 2007).  Before that,
67              the output maxval is always the default.
68
69
70       -min=float
71
72       -max=float
73
74              You can use these options to override the min and max values  as
75              read from the FITS header or the image data if the header has no
76              DATAMIN and DATAMAX keywords.
77
78
79       -scanmax
80              Use this option to force the program to scan the data even  when
81              the header has DATAMIN and DATAMAX.
82
83
84       -printmax
85              With this option, the program just prints the min and max values
86              and quits without doing its normal job.
87
88              This is for use in shell programs.  Example:
89
90                  eval 'fitstopnm -printmax $filename | \
91                  awk {min = $1; max = $2} \
92                        END {print "min=" min; " max=" max}'
93
94
95
96

NOTES

98   Pixel Order
99       You may need to pass the output of fitstopnm through  pamflip  -topbot‐
100       tom.  See pamtofits ⟨pamtofits.html#pixelorder⟩
101
102
103

SEE ALSO

105       pamtofits(1), pamflip(1), pgm(1)
106
107

AUTHOR

109       Copyright  (C)  1989  by  Jef  Poskanzer,  with modifications by Daniel
110       Briggs  (dbriggs@nrao.edu)  and  Alberto  Accomazzi   (alberto@cfa.har‐
111       vard.edu).
112

DOCUMENT SOURCE

114       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
115       source.  The master documentation is at
116
117              http://netpbm.sourceforge.net/doc/fitstopnm.html
118
119netpbm documentation             2 August 2015        Fitstopnm User Manual(0)
Impressum