PPMGLOBE(1)

πŸ’– PPMGLOBE πŸ’–

okay bestie, gather round, because this is genuinely one of the coolest little gremlins in the whole netpbm squad. it's ppmglobe, it lives in the General Commands Manual corner of your system, and what it does is: generate strips to glue onto a sphere. yes. actual papercraft. arts and crafts but make it Unix. πŸŽ€


✨ SYNOPSIS ✨


some lil housekeeping notes so you don't get caught out:

- Minimum unique abbreviation of option is acceptable. so yeah, you can be lazy, the program gets it. πŸ’…
- You may use double hyphens instead of single hyphen to denote options. `--closeok` is fine, `-closeok` is fine, we don't gatekeep.
- You may use white space in place of the equals sign to separate an option name from its value. `-background red`? valid. iconic behaviour honestly.

---

# 🌸 DESCRIPTION 🌸

so first things first, this program is part of Netpbm(1). fr fr, it's in the family.

`ppmglobe` does the <hotpink>inverse</hotpink> 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. it un-flattens the globe. it's giving reverse girlmath but for geography. 🌍✨

and now, because you're gonna ask: <purple>what even IS a cylindrical projection?</purple>

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 tracing as follows: wrap a rectangular sheet of paper around the globe, touching the globe at the Equator. For each point of color on the globe, run a horizontal line from the axis of the globe through that point and out to the paper. Mark the same color on the paper there. Lay the paper out flat and you have a cylindrical projection. 🧚

Here's where `ppmglobe` comes in: Pass the image on that paper through `ppmglobe` and what comes out the other side looks something like this:

Example of map of the earth run through `ppmglobe`

You could cut out the strips and glue it onto a sphere and you'd have a copy of the original globe. like. actual globe. in your hands. πŸ˜­πŸ’–

> heads up though bestie β€” 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. (valid reason tbh. no notes. πŸ’…)

You can find maps of planets at `space.jpl.nasa.gov` . πŸ‘‘

---

# πŸ¦‹ PARAMETERS πŸ¦‹

- *`stripcount`* β€” the number of strips `ppmglobe` 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. so like, more strips = cleaner globe but more scissor time. your call, main character. βœ‚οΈ

  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, `ppmglobe` 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, `ppmglobe` fails. πŸ’€

  > Before Netpbm 10.32 (February 2006), instead of truncating the image on the right, `ppmglobe` produces a fractional strip on the right. (old behaviour, messy behaviour, we don't do that anymore babes.)

- *`filename`* β€” the name of the input file. If you don't specify this, `ppmglobe` reads the image from Standard Input. classic stdin moment, we respect it. 🫢

---

# πŸŽ€ OPTIONS πŸŽ€

In addition to the options common to all programs based on libnetpbm (most notably `-quiet`, see Common Options ), `ppmglobe` recognizes the following command line options:

- **`-background=colorname`** β€” This specifies the color that goes between the strips. 🌈

  Specify the color (*color*) as described for the argument of the `pnm_parsecolor()` library routine .

  The default is black. πŸ–€

  > This option was new in Netpbm 10.31 (December 2005). Before that, the background is always black. so like, enjoy the colour era.

- **`-closeok`** β€” 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 because of the precision (i.e. maxval) of the image's color space. If you specify `-closeok` and `ppmglobe` 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 `closeok`, `ppmglobe` fails in that situation. so like β€” either you're chill about "close enough" or you get a whole crash. pick your fighter. 🫠✨

  > This option was new in Netpbm 10.31 (December 2005).

---

# ⭐ SEE ALSO ⭐

`ppm(1)` `pnmmercator(1)`

go read those too, bestie, they're part of the lore. πŸ“š

---

# πŸ’œ HISTORY πŸ’œ

`ppmglobe` was new in Netpbm 10.16 (June 2003).

It is derived from Max Gensthaler's `ppmglobemap`.

---

# πŸ‘‘ AUTHORS πŸ‘‘

Max Gensthaler wrote a program he called `ppmglobemap` in June 2003 and suggested it for inclusion in Netpbm. Bryan Henderson modified the code slightly and included it in Netpbm as `ppmglobe`. two icons, one program. 🫢

---

# πŸ“„ DOCUMENT SOURCE πŸ“„

This manual page was generated by the Netpbm tool `makeman` from HTML source. The master documentation is at

and that's the whole page babes!! 🌟 this lil gift is brought to you by netpbm documentation, dated 23 February 2006, and it lives under the very official title Ppmglobe User Manual(1). mwah. go glue a planet together. πŸŒπŸ’…πŸŽ€

πŸ“¦ where this page comes from