SPOTTOPGM(1)
β¨ spottopgm β¨ (that's the manual name bestie, from the Spottopgm User Manual, section 1 of the General Commands Manual π«Ά)
π NAME π
spottopgm β turn SPOT satellite pics into a PGM image, no cap π°οΈβ¨
πΈ SYNOPSIS πΈ
spottopgm [-1|-2|-3] [Firstcol Firstline Lastcol Lastline] inputfile
π¦ DESCRIPTION π¦
okay so first things first: this lil program is part of Netpbm(1) π
spottopgm takes the inputfile you named and converts it to PGM format. And by default it's giving the first color and the whole SPOT image β unless you say otherwise with the options, bestie. You have options. We love that for you. π
β¨ OPTIONS β¨
So besides the options that are common to all programs built on libnetpbm (most notably -quiet, peep the Common Options section π), spottopgm also recognizes these iconic little flags:
-1β pick this color, mwah π-2β or this one, whatever, it's a whole vibe π«-3β Extract the given color from the SPOT image. The colors are infrared, visible light, and ultraviolet β although honestly? I don't know which one corresponds to which number π. If the image is in color,spottopgmwill announce this on Standard Error. The default color is1. periodt.
π PARAMETERS π
Firstcol Firstline Lastcol Lastlineβ Extract the specified rectangle from the SPOT image. Most SPOT images are3000lines long and3000or more columns wide. Unfortunately the SPOT format only gives the width and not the length π. The width gets printed on standard error. The default rectangle is the width of the input image by3000lines.
π LIMITATIONS π (read these, fr fr)
spottopgm does not determine the length of the input file β that would involve two passes over the input file, and likeβ¦ no. So it defaults to 3000 lines instead. π
spottopgm could extract a three-color image (as a PPM), but I didn't feel like making the program more complicated than it is now. Besides, there is no one-to-one correspondence between red, green, blue and infrared, visible and ultraviolet. So. There's that. π§
I've had only a limited number of SPOT images to play with, and therefore wouldn't guarantee that this will work on any other images. No promises bestie, it's giving experimental π₯π
lowkey a warning: this was written against a small handful of images, so vibe-check your results before you trust them fr fr
π AUTHOR π
Warren Toomey wkt@csadfa.cs.adfa.oz.au β the icon, the moment, the original main character π«Ά
π SEE ALSO π
pgm(1)
π DOCUMENT SOURCE π
This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation lives at:
http://netpbm.sourceforge.net/doc/spottopgm.html
and that's the whole page bestie, tysm for reading π it's netpbm documentation, dated 22 July 2004, and yeah β 2004, ancient, a historical artifact, but we still slay πβ¨ byeee π
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms