Files
tldr/pages.zh/common/spottopgm.md

16 lines
493 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# spottopgm
> 将SPOT卫星图像转换为PGM格式。
> 更多信息:<https://netpbm.sourceforge.net/doc/spottopgm.html>。
- 将指定的SPOT图像转换为PGM格式
`spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}`
- 提取指定的颜色通道:
`spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}`
- 从输入图像中提取指定的矩形区域:
`spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}`