about summary refs log tree commit diff
path: root/spottopgm.html
blob: ff51fbaca5c9271828c87f88cb9283353391f558 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Spottopgm User Manual</TITLE></HEAD>
<BODY>
<H1>spottopgm</H1>
Updated: 22 July 2004
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

spottopgm - convert SPOT satellite images to a PGM image

<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>

<b>spottopgm</b> 
[<b>-1</b>|<b>-2</b>|<b>-3</b>] 
[<i>Firstcol</i> <i>Firstline</i> <i>Lastcol</i> <i>Lastline</i>] 
<i>inputfile</i>

<A NAME="lbAD">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>
<DT><B>-1</b>
<DT><B>-2</b>
<DT><B>-3</b>

<DD>Extract the given color from the SPOT image.  The colors are
infrared, visible light, and ultraviolet, although I don't know which
corresponds to which number.  If the image is in color,
<b>spottopgm</b> announces this on Standard Error.  The default color
is 1.


</dl>

<A NAME="parameters">&nbsp;</A>
<H2>PARAMETERS</H2>
<DL>

<DT><I>Firstcol Firstline Lastcol Lastline</I>

<DD>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 is printed on standard error.  The default
rectangle is the width of the input image by 3000 lines.

</DL>

<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<b>spottopgm</b> converts the named <B>inputfile</B> to PGM format,
defaulting to the first color and the whole SPOT image unless
you specify otherwise with the options.

<A NAME="lbAG">&nbsp;</A>
<H2>LIMITATIONS</H2>

<P><B>spottopgm</B> doesn't determine the length of the input file;
this would involve two passes over the input file.  It defaults to
3000 lines instead.

<P><B>spottopgm</b> 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.

<P>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.

<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>

Warren Toomey <A
HREF="mailto:wkt@csadfa.cs.adfa.oz.au">wkt@csadfa.cs.adfa.oz.au</A>

<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>

<P><B><A HREF="pgm.html">pgm</A></B>


<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNTAX</A>
<LI><A HREF="#lbAD">OPTIONS</A>
<LI><A HREF="#lbAE">DESCRIPTION</A>
<LI><A HREF="#lbAG">LIMITATIONS</A>
<LI><A HREF="#lbAH">AUTHOR</A>
<LI><A HREF="#lbAI">SEE ALSO</A>
</UL>
</BODY>
</HTML>