.TL
Ppmglobe User Manual
.SH 1
ppmglobe
.LP
Updated: 23 February 2006
.br
Table Of Contents
.SH 2
NAME
.LP
ppmglobe - generate strips to glue onto a sphere
.SH 2
SYNOPSIS
.LP
\fBppmglobe\fR
[\fB-background=\fR\fIcolorname\fR]
[\fB-closeok\fR]
\fIstripcount\fR
[\fIfilename\fR]
.LP
Minimum unique abbreviation of option is acceptable. You may use double
hyphens instead of single hyphen to denote options. You may use white
space in place of the equals sign to separate an option name from its value.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBppmglobe\fR does the inverse of a cylindrical projection of a
sphere. Starting with a cylindrical projection, it produces an image
you can cut up and glue onto a sphere to obtain the spherical image of
which it is the cylindrical projection.
.LP
What is a cylindrical projection? Imagine a map of the Earth on
flat paper. There are lots of different ways cartographers show the
three dimensional information in such a two dimensional map. The
cylindrical projection is one. You could make a cylindrical projection
by putting a light inside a globe and wrapping a rectangular sheet of
paper around the globe, touching the globe at the Equator. Then trace
the image that the light projects onto the paper. Lay the paper out flat
and you have a cylindrical projection.
.LP
Here's where \fBppmglobe\fR comes in: Pass the image on that paper
through \fBppmglobe\fR and what comes out the other side looks something
like this:
.LP
.LP
You could cut out the strips and glue it onto a sphere and you'd
have a copy of the original globe.
.LP
Note that cylindrical projections are not what you normally see as
maps of the Earth. You're more likely to see a Mercator projection.
In the Mercator projection, the Earth gets stretched North-South as
well as East-West as you move away from the Equator. It was invented
for use in navigation, because you can draw straight compass courses
on it, but is used today because it is pretty.
.LP
You can find maps of planets at maps.jpl.nasa.gov.
.SH 2
PARAMETERS
.LP
.LP
\fIstripcount\fR is the number of strips \fBppmglobe\fR is to
generate in the output. More strips makes it easier to fit onto a
sphere (less stretching, tearing, and crumpling of paper), but makes
you do more cutting out of the strips.
.LP
The strips are all the same width. If the number of columns of
pixels in the image doesn't evenly divide by the number of strips,
\fBppmglobe\fR truncates the image on the right to create nothing but
whole strips. In the pathological case that there are fewer columns
of pixels than the number of strips you asked for, \fBppmglobe\fR
fails.
.LP
Before Netpbm 10.32 (February 2006), instead of truncating the image
on the right, \fBppmglobe\fR produces a fractional strip on the right.
.LP
\fIfilename\fR is the name of the input file. If you don't
specify this, \fBppmglobe\fR reads the image from Standard Input.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-background=\fR\fIcolorname\fR"
This specifies the color that goes between the strips.
.LP
Specify the color (\fIcolor\fR) as described for the argument of the \fBppm_parsecolor()\fR
library routine.
.LP
The default is black.
.LP
This option was new in Netpbm 10.31 (December 2005). Before that,
the background is always black.
.IP "\fB-closeok\fR"
This means it is OK if the background isn't exactly the color you specify.
Sometimes, it is impossible to represent a named color exactly due to the
precision (i.e. maxval) of the image's color space. If you specify
\fB-closeok\fR and \fBppmglobe\fR can't represent the color you name
exactly, it will use instead the closest color to it that is possible.
If you don't specify \fBcloseok\fR, \fBppmglobe\fR fails in that
situation.
.LP
This option was new in Netpbm 10.31 (December 2005).
.RE
.SH 2
SEE ALSO
.LP
\fBppm\fR
.SH 2
HISTORY
.LP
.LP
\fBppmglobe\fR was new in Netpbm 10.16 (June 2003).
.LP
It is derived from
Max Gensthaler's \fBppmglobemap\fR.
.SH 2
AUTHORS
.LP
.LP
Max Gensthaler
wrote a program he called
\fBppmglobemap\fR in June 2003 and suggested it for inclusion in
Netpbm. Bryan Henderson modified the code slightly and included it in
Netpbm as \fBppmglobe\fR.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
PARAMETERS
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
AUTHORS
.LP
|