comparison man/man1/naptosai.1 @ 0:5242703e91d3 tip

Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author tomwalters
date Fri, 20 May 2011 15:19:45 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5242703e91d3
1 .TH NAPTOSAI 1 "14 September 1993"
2
3 .SH NAME
4 naptosai \- NAP to SAI format conversion.
5
6 .SH SYNTAX
7 naptosai [arguments] [file]
8
9 .SH DESCRIPTION
10
11 The program expects to read an AIM header, and interprets input as one large
12 frame in column-wise format (eg output from genbmm, gennap, etc.), to be
13 divided into input frames according to the given options.
14 Each frame is output in row-wise format (eg as if output from gensai).
15
16 The options "start" and "length" specify the input file.
17 The special option value length=max specifies all the input file from
18 the given start to its end.
19 The options "width" and "frstep" specify the framing.
20 The width option is the width of each frame and the frstep option is the
21 frameshift between successive frames in the input file.
22 The special option value width=max specifies the input framewidth as equal
23 to the given input file length, (and if this is also "max", then the
24 input framewidth is the remainder of the input file).
25 If frstep=0, then the output is one frame of given width from the given start
26 of the input file. For example, use naptosai with width=max and frstep=0
27 to produce one SAI frame the same size as the input NAP.
28
29 A new header is constructed, and most options in the input header are copied
30 to the output header. Some parts of the header are changed for the output
31 format: (frames, frameshift, framewidth, frameheight, framebytes).
32
33
34 .SH EXAMPLES
35
36 .nf
37 1. To convert a nap or a bmm output to a single frame of sai output:
38
39 gennap length=64 output=stdout file | naptosai width=32ms frstep=0 > file.sai
40 gensai top=1000 useprevious=on file
41
42 genbmm output=stdout file | naptosai > file.sai
43 gensai bottom=-100 useprevious=on file
44
45
46 This uses special case of zero frstep to generate one frame of output with
47 the given width. The default width is the given length, and the default
48 length is the remainder of the input file. If the width=length, then the
49 frstep is zero by default, and therefore the default process, (ie with no
50 arguments), converts the whole of the input to a single SAI frame.
51
52 Note, certain display parameters have different default values for different
53 applications. The SAI display parameters should be set to the appropriate
54 values, in order to plot the SAI on the same scale. For example:
55
56 When the source application is NAP, set gensai top=1000
57 When the source application is BMM, set gensai bottom=-100
58
59 2. To convert a nap output to multiple frames of sai output:
60
61 gennap length=40 output=stdout file | naptosai width=32ms frstep=0.2ms > file.sai
62 gensai top=1000 useprevious=on file
63
64 The sai output can be plotted as a spiral, but it is best to set the
65 display parameters as follows:
66
67 gennap length=40 output=stdout dencf=1 width=500 height=500 file |
68 naptosai width=32ms frstep=0.2ms > file.sai
69 genspl useprevious=on pensize=2 file
70
71
72
73 3. To convert a nap output to a sai format bitmap, to display an animated
74 stream:
75
76 gennap length=40 output=stdout file | naptosai width=32ms frstep=0.2ms > file.sai
77 gensai top=1000 useprevious=on bitmap=on file
78 review file
79
80 The same can be done for the spiral display:
81
82 gennap length=40 output=stdout dencf=1 width=500 height=500 file |
83 naptosai width=32ms frstep=0.2ms > file.sai
84 genspl useprevious=on pensize=2 bitmap=on file
85 review file
86
87 The plots show the nap moving though 8ms (40-32), in steps of 0.2ms,
88 first in rectangular display, then in spiral-mapped display.
89 .fi
90
91 .SH BUGS
92 None yet.
93 .SH COPYRIGHT
94 .LP
95 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
96 .LP
97 Permission to use, copy, modify, and distribute this software without fee
98 is hereby granted for research purposes, provided that this copyright
99 notice appears in all copies and in all supporting documentation, and that
100 the software is not redistributed for any fee (except for a nominal
101 shipping charge). Anyone wanting to incorporate all or part of this
102 software in a commercial product must obtain a license from the Medical
103 Research Council.
104 .LP
105 The MRC makes no representations about the suitability of this
106 software for any purpose. It is provided "as is" without express or
107 implied warranty.
108 .LP
109 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
110 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
111 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
112 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
113 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
114 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
115 SOFTWARE.
116