~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to prim/help/computcolu.hlq

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
% @(#)computcolu.hlq    19.1 (ESO-IPG) 02/25/03 14:03:02 
 
2
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
3
%.COPYRIGHT  (c)  1990 European Southern Observatory
 
4
%.IDENT      computcolu.hlq
 
5
%.AUTHOR     KB, IPG/ESO
 
6
%.KEYWORDS   MIDAS, help files, COMPUTE/COLUMN
 
7
%.PURPOSE    On-line help file for the command: COMPUTE/COLUMN
 
8
%.VERSION    1.0  01-JUN-1987 : Creation, KB
 
9
%----------------------------------------------------------------
 
10
\se
 
11
SECTION./COLU
 
12
\es\co
 
13
COMPUTE/COLUMN                                  06-DEC-1994   KB
 
14
\oc\su
 
15
COMPUTE/COLUMN res_frame.column = arithmetic_expression
 
16
        do arithmetics on columns of an image
 
17
\us\pu
 
18
Purpose:
 
19
          Perform arithmetic operations on columns of images and store result
 
20
          in a column of an image.
 
21
\up\sy
 
22
Syntax:  
 
23
          COMPUTE/COLUMN res_frame.column = expression
 
24
\ys\pa
 
25
          res_frame.column = \\ image and column to get result of expression,
 
26
              the column is specified by Ci (or ci), with i in [1,NPIX(1)];
 
27
\\
 
28
              if VMS, a new version of the frame will be created by MIDAS
 
29
\ap\pa
 
30
          expression = expression with up to 10 operands, which may be
 
31
              functions and columns or/and constants in the usual algebraic
 
32
              notation, columns of the res_frame are indicated by a leading 
 
33
              "C" or "c";
 
34
\\
 
35
              columns of other frames are indicated via `frame.Ci'
 
36
\ap\no
 
37
Note: 
 
38
          The operations +, -, *, / and ** are supported with the same
 
39
          precedence as in FORTRAN. Parentheses may be used to change that
 
40
          order as well as to nest operations.
 
41
\\
 
42
          The functions SQRT(a), EXP(a), EXP10(a), LN(a), LOG10(a), SIN(a)
 
43
          ASIN(a), COS(a), ACOS(a), TAN(a), ATAN(a), INT(a), ATAN2(a1,a2),
 
44
          MAX(a1,a2), MIN(a1,a2), MOD(a1,a2) and ABS(a), are implemented as in
 
45
          FORTRAN. Except that INT(a) will return the nearest integer of "a"
 
46
          converted to real.
 
47
\\
 
48
          The trigonometric functions expect arguments in degrees!
 
49
\\
 
50
          Results of illegal operations (e.g. division by zero) are set to
 
51
          the "null value" defined by the keyword NULL.
 
52
\\
 
53
          This command does not work with 1-dim frames!
 
54
\\
 
55
          If columns from other frames are involved in the expression, they
 
56
          must have the same no. of pixels per column, i.e. NPIX(2).
 
57
          The no. of columns does not have to be the same.
 
58
\on\see
 
59
See also:
 
60
          COMPUTE/ROW, COMPUTE/PLANE, COMPUTE/IMAGE, COMPUTE/XYPLANE
 
61
\ees\exs
 
62
Examples:
 
63
\ex
 
64
          COMPUTE/COLUMN tiburon.C22 = C100+C44
 
65
            Use image frame `tiburon.bdf' and add the 100th column to the
 
66
            44th column, store the result into the 22nd column of frame
 
67
            `tiburon.bdf'.
 
68
\xe\ex
 
69
          COMPUTE/COLUMN ballena.c7 = 99.9*sin(delfin.c125)
 
70
            Set the 7th column of frame `ballena.bdf' to the product of 99.9
 
71
            and the sine of the contents of column no. 125 of frame 
 
72
            `delfin.bdf'. The no. of pixels per column of the two frames
 
73
            must be equal (i.e. same NPIX(2)).
 
74
\xe\ex
 
75
          COMPUTE/COLUMN ballena.c2 = 2.*c27
 
76
            Compute 2.0 * 27th column of `ballena.bdf' and store result into 
 
77
            second column of frame `ballena.bdf' .
 
78
\xe \sxe