This file is indexed.

/usr/share/doc/ftools-pow/HOWTO is in ftools-pow 5.4+dfsg-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
The only really tricky part about using POW from TCL is getting a pointer
to your data passed to it.  This must be done through the clientData argument
when you call Tcl_CreateCommand for whatever command is going to read the 
data.  The file readpha.c is an example in the current POW distribution. 

The routine for the command that's going to create/read the data 
will have the standard look for a TCL command written in C:

#include "pow.h"

int readpha(ClientData clientData, Tcl_Interp *interp,           
	      int argc, char *argv[]) {                          

Now define a pointer to pointer to use to do the "pointer pass":

int **databuff

You'll also presumably have a pointer to the actual data you want
to "create" in POW:

void *imagebuff

Now do whatever you need to to get imagebuff to point at the array you
want to "create" in POW, and then:

databuff = clientData;                                                 
*databuff = (int *)imagebuff;                                         

You probably want to have your TCL command return the things
that powCreateData is expecting (i.e. a data type and the number of
elements in the array, something like:

sprintf(interp->result,"%i %i", array_type, width*height);

array type can be either a string or an integer:


BYTE          0 
SHORTINT      1
INT           2
REAL          3
DOUBLE        4 


You can now do:

eval [concat powCreateData mydata [readpha filename]]

So the high level TCL commands which work now are:


%powCreateData data_name data_type length

%powCreateImage image_name data_name xoffset yoffset width height xorigin xinc yorigin yinc xunits yunits zunits

%powCreateGraph graph_name curves images xunits yunits xlabel ylabel xdimdisp ydimdisp

There are actually more, but they can all be accessed through the POW GUI,
so I'm not going to describe them right now.