man-pages/man1/pnmtofits.1.html
2021-03-31 01:06:50 +01:00

98 lines
2.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of pnmtofits</TITLE>
</HEAD><BODY>
<H1>pnmtofits</H1>
Section: User Commands (1)<BR>Updated: 5 Dec 1992<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="ixAAB"></A>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pnmtofits - convert a portable anymap into FITS format
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>pnmtofits</B>
[<B>-max</B>
<I>f</I>]
[<B>-min</B>
<I>f</I>]
[<I>pnmfile</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
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 &amp; Astrophysics Supplement Series 44 (1981), page 363.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
Flags
<B>-min</B>
and
<B>-max</B>
can be used to set DATAMAX, DATAMIN, BSCALE and BZERO in the FITS
header, but do not cause the data to be rescaled.
<A NAME="lbAF">&nbsp;</A>
<H2>BUGS</H2>
<P>
FITS uses signed data, and this program outputs unsigned values. If you
run into this problem, you might use &quot;-min 32768&quot;.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?1+fitstopnm">fitstopnm</A>(1), <A HREF="/cgi-bin/man/man2html?5+pgm">pgm</A>(5)
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
Copyright (C) 1989 by Wilson H. Bent (<A HREF="mailto:whb@hoh-2.att.com">whb@hoh-2.att.com</A>), with
modifications
by Alberto Accomazzi (<A HREF="mailto:alberto@cfa.harvard.edu">alberto@cfa.harvard.edu</A>).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="4"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="5"><A HREF="#lbAF">BUGS</A><DD>
<DT id="6"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="7"><A HREF="#lbAH">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:24 GMT, March 31, 2021
</BODY>
</HTML>