98 lines
2.4 KiB
HTML
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"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
pnmtofits - convert a portable anymap into FITS format
|
|
<A NAME="lbAC"> </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"> </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 & Astrophysics Supplement Series 44 (1981), page 363.
|
|
<A NAME="lbAE"> </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"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
<P>
|
|
|
|
FITS uses signed data, and this program outputs unsigned values. If you
|
|
run into this problem, you might use "-min 32768".
|
|
<A NAME="lbAG"> </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"> </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"> </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>
|