; IDL Version 7.1.1 (linux x86_64 m64) ; Journal File for tarrl@helios ; Working directory: /nfs/home/tarrl/work/idltutorial ; Date: Wed Jun 1 09:23:38 2011 ; functions! a = sin(3.1415) print, a ; 9.26574e-05 help, a help, /memory help, a help, a,/struture ; % Keyword STRUTURE not allowed in call to: HELP help, a,/structure a = {name:'Lucas',value:500.234} help, a help, a,/struct t = findgen(100) print, t ; 0.00000 1.00000 2.00000 3.00000 4.00000 5.00000 ; 6.00000 7.00000 8.00000 9.00000 10.0000 11.0000 ; 12.0000 13.0000 14.0000 15.0000 16.0000 17.0000 ; 18.0000 19.0000 20.0000 21.0000 22.0000 23.0000 ; 24.0000 25.0000 26.0000 27.0000 28.0000 29.0000 ; 30.0000 31.0000 32.0000 33.0000 34.0000 35.0000 ; 36.0000 37.0000 38.0000 39.0000 40.0000 41.0000 ; 42.0000 43.0000 44.0000 45.0000 46.0000 47.0000 ; 48.0000 49.0000 50.0000 51.0000 52.0000 53.0000 ; 54.0000 55.0000 56.0000 57.0000 58.0000 59.0000 ; 60.0000 61.0000 62.0000 63.0000 64.0000 65.0000 ; 66.0000 67.0000 68.0000 69.0000 70.0000 71.0000 ; 72.0000 73.0000 74.0000 75.0000 76.0000 77.0000 ; 78.0000 79.0000 80.0000 81.0000 82.0000 83.0000 ; 84.0000 85.0000 86.0000 87.0000 88.0000 89.0000 ; 90.0000 91.0000 92.0000 93.0000 94.0000 95.0000 ; 96.0000 97.0000 98.0000 99.0000 x = sin(t)*exp(-t/10.) plot, x tm = t/60. plot, tm, x xloadct plot, tm, x, color=100 loadct, 13 plot, tm, x, color=100 loadct, 12 plot, tm, x, color=100 plot, tm, x, color=100, thick = 5., linestyle = 2 plot, tm, x, color=100, thick = 5., linestyle = 2, title = 'A damped, harmonic oscillator', xtitle = 'Time in minutes', ytitle = 'Displacement' ; plot, with labels and a title oplot, tm, exp(-t/10.) oplot, tm, -exp(-t/10.) plot, tm, x, color=100, thick = 5., linestyle = 2, title = 'A damped, harmonic oscillator', xtitle = 'Time in minutes', ytitle = 'Displacement' ; plot, with labels and a title oplot, tm, exp(-t/10.) oplot, tm, -exp(-t/10.) x2jpeg, './damped' write_jpeg, './damped.jpg', tvrd() set_plot, 'ps' device, /encap, filename = './damped_harm.ps', bits=8, /color, /inches, xsize=5., ysize=4.;these are the parameters and keywords I use for postscript pretty much every time. plot, tm, x, color=100, thick = 5., linestyle = 2, title = 'A damped, harmonic oscillator', xtitle = 'Time in minutes', ytitle = 'Displacement' ; plot, with labels and a title oplot, tm, exp(-t/10.) oplot, tm, -exp(-t/10.) device, /close device, /encap, filename = './damped_harm.ps', bits=8, /color, /inches, xsize=5., ysize=4.;these are the parameters and keywords I use for postscript pretty much every time. plot, tm, x, thick = 5., linestyle = 2, title = 'A damped, harmonic oscillator', xtitle = 'Time in minutes', ytitle = 'Displacement' ; plot, with labels and a title oplot, tm, exp(-t/10.), color = 200 oplot, tm, -exp(-t/10.), color = 100 device,/close set_plot, 'x' plot, sint(x) ; % Variable is undefined: SINT. plot, sin(x) xpallet ; % Attempt to call undefined procedure/function: 'XPALLET'. xpalette xloadct xpalette xpalette b = asin(0.00002) print, b ; 2.00000e-05 b = where(t lt 10.0 ) print, b ; 0 1 2 3 4 5 ; 6 7 8 9 print, t[b] ; 0.00000 1.00000 2.00000 3.00000 4.00000 5.00000 ; 6.00000 7.00000 8.00000 9.00000 print, tm[b] ; 0.00000 0.0166667 0.0333333 0.0500000 0.0666667 0.0833333 ; 0.100000 0.116667 0.133333 0.150000 b = where( x gt 0.25) help, b print, b ; 1 2 7 8 b = where( x gt 0.25, nb, complement=c, ncomplement=nc) ; indices of our position array when the valueis about 0.25 help, b,c print, nb ; 4 print, nc ; 96 plot, tm, x, linestyle = 0 oplot, tm[c], x[c], linestyle=1, color = 200, psym=4., symsize = 2. oplot, tm[b], x[b], linestyle=1, color = 50, psym=4., symsize = 2. .run newplot ; % End of file encountered before end of program. ; % 1 Compilation error(s) in module $MAIN$. .run newplot img = randomu(5,100, 50) display, img tv, img