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

« back to all changes in this revision

Viewing changes to contrib/geotest/help/createart_.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
% @(#)createart_.hlq    19.1 (ESO-IPG) 02/25/03 13:24:38 
 
2
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
3
%.COPYRIGHT  (c)  1990 European Southern Observatory
 
4
%.IDENT      createart_.hlq
 
5
%.AUTHOR     KB, IPG/ESO
 
6
%.KEYWORDS   MIDAS, help files, CREATE/ART_IMAGE
 
7
%.PURPOSE    On-line help file for the command: CREATE/ART_IMAGE
 
8
%.VERSION    1.0  07-NOV-1990 : Creation, KB
 
9
%----------------------------------------------------------------
 
10
\se
 
11
SECTION./ART_
 
12
\es\co
 
13
CREATE/ART_IMAGE                                          26-FEB-1992  PB
 
14
\oc\su
 
15
CREATE/ART_IMAGE frame frame dims [starts,steps] [func_type] [coefs]
 
16
CREATE/ART_IMAGE frame = ref_frame [func_type] [coefs]
 
17
        create artificial image
 
18
\us\pu
 
19
Purpose:      
 
20
     Create a new artifical image frame.
 
21
\up\sub
 
22
Subject:      
 
23
     Artificial frames, models, fractals.
 
24
\bus\sy
 
25
Syntax:       
 
26
     CREATE/ART_IMAGE frame [dims] [starts,steps] [func_type] [coefs]\\
 
27
              or\\
 
28
     CREATE/ART_IMAGE frame = ref_frame [func_type] [coefs]
 
29
\ys\pa
 
30
     frame = name of new frame
 
31
\ap\pa
 
32
     ref_frame = reference frame, i.e. take all descriptors from that frame
 
33
\ap\pa
 
34
     dims =       NAXIS,NPIX(1),...,NPIX(NAXIS); default:  2,512,512
 
35
\ap\pa
 
36
     starts,steps = START(1),...,START(NAXIS),STEP(1),...,STEP(NAXIS)\\
 
37
                  default: = -1.3 for START(i), = 0.005 for STEP(i)\\
 
38
                  Start and step may have to be adapted depending on the
 
39
                  chosen function and coefficients.
 
40
\ap\pa
 
41
      func_type = type of function used to define the content of the created 
 
42
                  image:\\
 
43
                  MANDEL for creation of Mandelbrot set   \\
 
44
                  JULIA for creation of Julia set\\
 
45
                  LORENZ for creation of Lorenz attractors \\
 
46
                  ELFLY for simulation of a chaotic system (electronic fly)\\
 
47
                  COLWHEEL for creation of a colour wheel\\
 
48
                  Default: LORENZ
 
49
\ap\pa
 
50
      coefs = coefficients for the function which is used to create the
 
51
                  image, number and meaning depends on the parameter 
 
52
                  func_type:\\
 
53
                  MANDEL    zx,zy,uplimit     default: .31,.04,100\\
 
54
                  JULIA     zx,zy,uplimit     default: .31,.04,100\\
 
55
                  LORENZ    x0,y0,z0,h,a,b,n_iter   \\
 
56
                            default: 1,1,1,.01,28,0.1,10000\\
 
57
                  ELFLY     a,b,c,d,e,f,n_iter   \\
 
58
                            default: 2.24,.43,-.65,-2.43,1.,300000
 
59
\ap\no
 
60
Note:         
 
61
              For MANDEL and JULIA, the coefficients represent zx,zy,uplimit 
 
62
              where zx and zy are the real and imaginary part of a complex 
 
63
              number zz, which serves as the initial value for z in the 
 
64
              formula:\\
 
65
              z <- z*z + c \\
 
66
              the real and imaginary parts of c are the x,y coords
 
67
\\
 
68
              If after 256 iterations z <= uplimit, the pixel at (x,y) is
 
69
              set to 0.0, else pixel <- iteration_no .
 
70
\\
 
71
              For ELFLY, the coefficients represent a,b,c,d,e,f,no_iter where
 
72
              a,b,c,d,e,f are control parameters and no_iter the number of
 
73
              loops for evaluation of the formulaes:\\
 
74
              xx = sin(a*y) - z*cos(b*x)\\ 
 
75
              yy = z*sin(c*x) - cos(d*y)\\
 
76
              zz = e*sin(x)\\
 
77
              x = xx, y = yy, z = zz.\\
 
78
              the pixel value at resulting x,y coords (z is discarded) is
 
79
              increased by 1.0 .
 
80
\\
 
81
              For LORENZ, the coefficients represent x0,y0,z0,h,a,b,no_iter 
 
82
              where x0,y0,z0 are the inital value for a point in space,
 
83
              h,a,b are coefficients and no_iter the number of loops for 
 
84
              evaluating the formulae:\\
 
85
              xx = x + 10.*h*(y-x)\\ 
 
86
              yy = y = h*((-x*z)+a*x-y)\\
 
87
              zz = z + h*(x*y-b*z)\\
 
88
              x = xx, y = yy, z = zz.\\
 
89
              the pixel value at resulting x,y coords (z is discarded) is
 
90
              set to 1.0 .
 
91
\on\exs
 
92
Examples:     
 
93
\ex
 
94
      CREATE/ART mandel ?  -1.6,-1.3,0.05,0.05  MANDEL
 
95
\xe\ex
 
96
      CREATE/ART julia  P4=JULIA
 
97
\xe\ex
 
98
      CREATE/ART lorenz ? -25,-25,0.1,0.1 LO .1,.1,.1,.01,28,2.66,4000
 
99
\xe\ex
 
100
      CREATE/ART elfly ? -2.5,-2.5,0.01,0.01 ELFLY 2.24,.43,-.65,-2.43,1,300000
 
101
\xe\sxe
 
102
 
 
103
 
 
104
 
 
105
 
 
106
 
 
107
 
 
108