← 返回命令列表

Linux command

spottopgm 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Convert the default band

spottopgm [input.spot] > [output.pgm]

Select a specific band

spottopgm -2 [input.spot] > [output.pgm]

Crop to a rectangular region

spottopgm [firstcol] [firstline] [lastcol] [lastline] [input.spot] > [output.pgm]

说明

spottopgm converts images in the SPOT satellite format to PGM (Portable Graymap) format. The SPOT format is used by imagery from the SPOT (Satellite Pour l'Observation de la Terre) Earth-observation satellite system, which captures high-resolution imagery for cartography, agriculture, and environmental monitoring. This tool is part of the Netpbm image-processing toolkit, which provides converters between many image formats.

参数

-1, -2, -3
Select which of the three spectral bands to extract (infrared, visible, and ultraviolet, though the Netpbm author acknowledges the exact mapping is uncertain). Only one band at a time is produced; combined multispectral PPM output is not supported.

FAQ

What is the spottopgm command used for?

spottopgm converts images in the SPOT satellite format to PGM (Portable Graymap) format. The SPOT format is used by imagery from the SPOT (Satellite Pour l'Observation de la Terre) Earth-observation satellite system, which captures high-resolution imagery for cartography, agriculture, and environmental monitoring. This tool is part of the Netpbm image-processing toolkit, which provides converters between many image formats.

How do I run a basic spottopgm example?

Run `spottopgm [input.spot] > [output.pgm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -1, -2, -3 do in spottopgm?

Select which of the three spectral bands to extract (infrared, visible, and ultraviolet, though the Netpbm author acknowledges the exact mapping is uncertain). Only one band at a time is produced; combined multispectral PPM output is not supported.