| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN"> |
| 2 | <html><head><title>Spottopgm User Manual</title></head> |
| 3 | <body> |
| 4 | <h1>spottopgm</h1> |
| 5 | Updated: 22 July 2004 |
| 6 | <br> |
| 7 | <a href="#index">Table Of Contents</a> |
| 8 | |
| 9 | <h2>NAME</h2> |
| 10 | |
| 11 | spottopgm - convert SPOT satellite images to a PGM image |
| 12 | |
| 13 | <h2 id="synopsis">SYNOPSIS</h2> |
| 14 | |
| 15 | <b>spottopgm</b> |
| 16 | [<b>-1</b>|<b>-2</b>|<b>-3</b>] |
| 17 | [<i>Firstcol</i> <i>Firstline</i> <i>Lastcol</i> <i>Lastline</i>] |
| 18 | <i>inputfile</i> |
| 19 | |
| 20 | <h2 id="description">DESCRIPTION</h2> |
| 21 | |
| 22 | <p>This program is part of <a href="index.html">Netpbm</a>. |
| 23 | |
| 24 | <b>spottopgm</b> converts the named <b>inputfile</b> to PGM format, |
| 25 | defaulting to the first color and the whole SPOT image unless |
| 26 | you specify otherwise with the options. |
| 27 | |
| 28 | <h2 id="options">OPTIONS</h2> |
| 29 | |
| 30 | <p>In addition to the options common to all programs based on libnetpbm |
| 31 | (most notably <b>-quiet</b>, see <a href="index.html#commonoptions"> |
| 32 | Common Options</a>), <b>spottopgm</b> recognizes the following |
| 33 | command line options: |
| 34 | |
| 35 | <dl compact> |
| 36 | <dt><b>-1</b> |
| 37 | <dt><b>-2</b> |
| 38 | <dt><b>-3</b> |
| 39 | |
| 40 | <dd>Extract the given color from the SPOT image. The colors are |
| 41 | infrared, visible light, and ultraviolet, although I don't know which |
| 42 | corresponds to which number. If the image is in color, |
| 43 | <b>spottopgm</b> announces this on Standard Error. The default color |
| 44 | is 1. |
| 45 | |
| 46 | </dl> |
| 47 | |
| 48 | <h2 id="parameters">PARAMETERS</h2> |
| 49 | <dl> |
| 50 | |
| 51 | <dt><i>Firstcol Firstline Lastcol Lastline</i> |
| 52 | |
| 53 | <dd>Extract the specified rectangle from the SPOT image. Most SPOT |
| 54 | images are 3000 lines long and 3000 or more columns |
| 55 | wide. Unfortunately, the SPOT format only gives the width and not the |
| 56 | length. The width is printed on standard error. The default |
| 57 | rectangle is the width of the input image by 3000 lines. |
| 58 | |
| 59 | </dl> |
| 60 | |
| 61 | <h2 id="limitations">LIMITATIONS</h2> |
| 62 | |
| 63 | <p><b>spottopgm</b> doesn't determine the length of the input file; |
| 64 | this would involve two passes over the input file. It defaults to |
| 65 | 3000 lines instead. |
| 66 | |
| 67 | <p><b>spottopgm</b> could extract a three-color image (as a PPM), but |
| 68 | I didn't feel like making the program more complicated than it is now. |
| 69 | Besides, there is no one-to-one correspondence between red, green, |
| 70 | blue and infrared, visible and ultraviolet. |
| 71 | |
| 72 | <p>I've had only a limited number of SPOT images to play with, and |
| 73 | therefore wouldn't guarantee that this will work on any other images. |
| 74 | |
| 75 | <h2 id="author">AUTHOR</h2> |
| 76 | |
| 77 | Warren Toomey <a |
| 78 | href="mailto:[email protected]">[email protected]</a> |
| 79 | |
| 80 | <h2 id="seealso">SEE ALSO</h2> |
| 81 | |
| 82 | <p><b><a href="pgm.html">pgm</a></b> |
| 83 | |
| 84 | <hr> |
| 85 | <h2 id="index">Table Of Contents</h2> |
| 86 | <ul> |
| 87 | <li><a href="#synopsis">SYNOPSIS</a> |
| 88 | <li><a href="#description">DESCRIPTION</a> |
| 89 | <li><a href="#options">OPTIONS</a> |
| 90 | <li><a href="#parameters">PARAMETERS</a> |
| 91 | <li><a href="#limitations">LIMITATIONS</a> |
| 92 | <li><a href="#author">AUTHOR</a> |
| 93 | <li><a href="#seealso">SEE ALSO</a> |
| 94 | </ul> |
| 95 | </body> |
| 96 | </html> |