SPOTTOPGM(1)

πŸ“¦
version 11.13.03 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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, spottopgm will announce this on Standard Error. The default color is 1. periodt.

πŸŽ€ PARAMETERS πŸŽ€

  • Firstcol Firstline Lastcol Lastline β€” Extract the specified rectangle from the SPOT image. Most SPOT images are 3000 lines long and 3000 or 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 by 3000 lines.

πŸ’€ 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