.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. Pamtofits User Manual - Online Linux Manual PageSection : 0
Updated : 25 September 2005
Source : netpbm documentation

NAMEpamtofits - convert a Netpbm image into FITS format .UN synopsis

SYNOPSISpamtofits [-max f] [-min f] [pamfile] .UN description

DESCRIPTIONThis program is part of Netpbm(1)​. pamtofits reads a PNM or PAM image as input and 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 PBM or PGM image, the output file consists of a single plane image (NAXIS = 2). If instead the input file is a PPM image, the output file will consist of a three-plane image (NAXIS = 3, NAXIS3 = 3). .UN options

OPTIONSIn addition to the options common to all programs based on libnetpbm (most notably -quiet, see
 Common Options
),
pamtofits recognizes the following command line options:
-min and -max tell pamtofits what "physical values" zero and maxval sample values, respectively, in the input image represent. Physical values are a FITS concept. pamtofits sets up the BSCALE and BZERO FITS header cards to indicate this information. The default for -min is 0 and for -max is the maxval, which means if you don't specify these options, the FITS physical values are in fact the original Netpbm sample values. pamtofits always sets up the FITS header DATAMIN and DATAMAX cards to indicate that the highest physical value in the image is the one corresponding to the Netpbm maxval and the lowest is that corresponding to Netpbm zero. This isn't really how those cards are supposed to be used, since the input image doesn't necessarily contain the full possible range of sample values. It is a conservative approximation. .UN notes

NOTES.UN pixelorder

Pixel OrderThe FITS specification does not specify which data in the file corresponds to which pixel in the image (i.e. which bytes are the top left pixel, etc.). Netpbm uses the common sense, most popular arrangement: row major, top to bottom, left to right. That means in a 10 wide by 20 high image, the first 10 pixels in the file are the top row and the last 10 are the bottom row. Within each row, the first pixel is the leftmost one and the last pixel is the rightmost one. Netpbm has always done that, since it first understood the FITS format in 1989, so it is something of a de facto standard. Nobody reported trouble with that until 2008. However, at least some versions of ImageMagick and Gimp (as seen in 2008) use bottom to top order, so if you use on of these to display a FITS image generated by pamtofits, it will appear upside down. To fix that, use pamflip -topbottom on the image before feeding it to pamtofits. Since 2008, people have noted that NASA distributes FITS files with bottom to top order. .UN history

HISTORYpamtofits was originally pnmtofits and did not handle PAM input. It was extended and renamed in Netpbm 10.30 (October 2005). pnmtofits was itself an extension of pgmtofits, which was added to Pbmplus in 1989. .UN seealso

SEE ALSO"fitstopnm(1)​, "pam(1).UN author

AUTHORCopyright (C) 1989 by Wilson H. Bent (whb@hoh-2.att.com), with modifications by Alberto Accomazzi (alberto@cfa.harvard.edu).

DOCUMENT SOURCEThis manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at http://netpbm.sourceforge.net/doc/pamtofits.html
0
Johanes Gumabo
Data Size   :   11,789 byte
man-pamtofits.1Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 259,695
Visitor ID   :     :  
Visitor IP   :   18.191.162.61   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|pamtofits.1|1/2|\" This man page was generated by the Netpbm tool 'makeman' from HTML source. |.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. )         (parse_manual_page_|252|pamtofits.1|1/2|\"|.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. )         (parse_manual_page_|252|pamtofits.1|12|UN|.UN synopsis )         (parse_manual_page_|252|pamtofits.1|20|UN|.UN description )         (parse_manual_page_|252|pamtofits.1|35|UN|.UN options )         (parse_manual_page_|252|pamtofits.1|64|UN|.UN notes )         (parse_manual_page_|252|pamtofits.1|67|UN|.UN pixelorder )         (parse_manual_page_|252|pamtofits.1|92|UN|.UN history )         (parse_manual_page_|252|pamtofits.1|101|UN|.UN seealso )         (parse_manual_page_|252|pamtofits.1|108|UN|.UN author )