HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

spottopgm — Convert a SPOT satellite image to PGM format. More information: <https://netpbm.sourceforge.net/doc/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandspottopgmconvertcliimagesatellitepgmspot

Problem

How to use the spottopgm command: Convert a SPOT satellite image to PGM format. More information: <https://netpbm.sourceforge.net/doc/spottopgm.html>.

Solution

spottopgm — Convert a SPOT satellite image to PGM format. More information: <https://netpbm.sourceforge.net/doc/spottopgm.html>.

Convert the specified SPOT image to PGM format:
spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}


Extract the specified color channel:
spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}


Extract the specified rectangle from the input image:
spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}

Code Snippets

Convert the specified SPOT image to PGM format

spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}

Extract the specified color channel

spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}

Extract the specified rectangle from the input image

spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}

Context

tldr-pages: common/spottopgm

Revisions (0)

No revisions yet.