IPP_Workshop_Aug_2009: dvo.example.raw.txt

File dvo.example.raw.txt, 3.4 KB (added by mhuber@…, 8 years ago)

command list for DVO demo with sample DVO catalog (uncommented version)

Line 
1echo hi there
2$a = 5
3dcho $
4echo $
5echo $a
6$a = asdkj sdflkje
7echo $a
8$a = 5.00000020020
9echo $a
10$a = 5*3
11echo $a
12echo {5*3}
13echo {5*sin(1.5)}
14echo {5*dsin(45)}
15echo {dsin(45)}
16echo {dasin(1.0)}
17echo {asin(1.0)}
18echo {5^2}
19help Math
20?
21??
22list word
23echo $word:0
24echo $word:n
25echo $word:0
26echo $word:1
27echo $word:2
28echo $word:3
29list name -x "ls *"
30echo $name:n
31echo $name:0
32echo $name:1
33echo $name:2
34create x 0 1000
35create x 0 1000 0.1
36$a = 6*5
37set a = 5*4
38echo $a
39set y = x^#
40set y = x^2
41echo x[5]
42echo x[0]
43echo x[1]
44echo x[]
45echo x[-1]
46echo x[-2]
47echo x[-3]
48box
49box -n foo
50clear -n 0
51device
52device -n foo
53device
54clear
55lim -n 0 x y
56ox
57box
58plot x y
59clear; plot x y -x 0
60clear; plot x y -x 0; box
61help plot
62help style
63style -c red
64clear; plot x y -x 0; box
65clear; plot x y -x 0 -c blue; box
66plot -c help
67clear; plot x y -x 0 -c indigo; box
68echo y[500]
69echo y[5000]
70y[5000] = 1e6
71clear; plot x y -x 0 -c indigo; box
72set y = sin(x) + x^2
73lim x y; clear; plot x y -x 0 -c indigo; box
74set y = 100*sin(x) + x^2
75lim x y; clear; plot x y -x 0 -c indigo; box
76set y = 50000*sin(x) + x^2
77lim x y; clear; plot x y -x 0 -c indigo; box
78write test.dat x y
79exec ls
80!ls
81!head test.dat
82write -f "%6.2f %7.2f" test.dat x y
83!head test.dat
84fprint "%e" x[0]
85fprint "%20.10e" x[20]
86data test.dat
87read P 2 Q 1 T 1
88vectors
89plot T P -c red
90read -fits EXTNAME P Q T
91mcreate image 500 700
92echo image[5][70]
93image[5][70] = 500
94echo image[5][70]
95set xim = xramp(image)
96tv -n foo xim 0 700
97ps -name file.ps
98!evince file.ps
99set yim = sin(xim)
100tv yim -1 2
101cursor
102echo $Xt $Yt
103cursor 1
104cursor 1 -n 0
105echo $X1 $Y1
106extract xim
107catdir catdir.sample
108!ls
109macro test
110test 8
111test 3
112input loneos
113navigate
114region
115region 103.0 0.0 90.0 ait
116cgrid
117images
118region 103.0 0.0 2.0 tan
119images
120cgrid -c red
121region 103.0 0.0 0.3 tan
122images
123skycat -c blue
124mextract ra dec mag -region
125vectors
126cplot ra dec -pt 0 -sz 0.3
127echo czplot ra dec mag 16.0 -pt 0 -sz 0.3
128vstat mag
129czplot ra dec mag 16.0 10.0 -pt 7 -c blue
130mextract ra dec mag -region  where ra < 103.3
131vectors
132czplot ra dec mag 16.0 10.0 -pt 7 -c red
133avextract RA DEC i -region
134vectors
135czplot RA DEC i 16.0 10.0 -pt 7 -c violet
136region -ew 103.0 0.0 0.3
137images
138czplot ra dec mag 16.0 10.0 -pt 7 -c red
139mextract ra dec mag:inst mag:ave -region
140vectors
141set dmag = mag:ave - mag:inst
142lim -n 1 mag:ave dmag ; clear; box; plot mag:ave dmag
143lim -n 1 mag:ave 24.0 28.0; clear; box; plot mag:ave dmag
144mextract ra dec ra:ave dec:ave mag:inst mag:ave -region
145device -n 0
146mextract ra dec ra:ave dec:ave mag:inst mag:ave -region
147vectors
148set dra = ra - ra:ave
149set ddec = dec - dec:ave
150lim -n 2 dra ddec; clear; box; plot dra dave
151lim -n 2 dra ddec; clear; box; plot dra dddev
152lim -n 2 dra ddec; clear; box; plot dra ddec
153set dR = dra*3600
154set dD = ddec*3600
155lim -n 2 -2 2 -2 2; clear; box; plot dR dD
156label -x bottom -y left +x top +y right
157label -ul asd -ll asfdfd -ur asdfdw -lr awetedsg
158label -fn courier 18
159label -ul asd -ll asfdfd -ur asdfdw -lr awetedsg
160label -x foo_bar|
161label -x "foo_bar| sdfd"
162label -x "foo_bar| sdfd &ss&hthere"
163label -x "foo_bar| sdfd &ss&hthere^243"
164label
165plot
166which plot
167!ls
168!fhead catdir.sample/Images.dat
169!fhead -x 0 catdir.sample/Images.dat
170data catdir.sample/Images.dat
171read -fits DVO_IMAGE_PS1_V1
172read -fits DVO_IMAGE_PS1_V1 CRVAL1 CRVAL2
173vectors
174mextract -help fields
175mextract -help field
176mextract --help fields
177lightcurve
178vectors
179lightcurve ra:ave[0] dec:ave[0] 0.002
180lightcurve ra:ave[100] dec:ave[100] 0.002
181vectors
182lim -n 2 tc mc; clear; box; plot tc mc