>;) IDL>x=findgen(100) >;) IDL>print,minmax(x) % Compiled module: MINMAX. 0.00000 99.0000 >;) IDL>plot,x >;) IDL>xsin=x/(max(x)) >;) IDL>xsin=x/(max(x))*(2*!pi) >;) IDL>xsin=x/(max(x))*(2*!dpi) >;) IDL>plot,xsin >;) IDL>ysin=sin(xsin) >;) IDL>plot,xsin,ysin >;) IDL>ysin=sin(xsin*3) >;) IDL>plot,xsin,ysin >;) IDL>save,xsin,ysin,file='sine.sav' >;) IDL>restore,'sin.sav',/ver % RESTORE: Error opening file. Unit: 100, File: sin.sav No such file or directory % Execution halted at: $MAIN$ >;) IDL>restore,'sine.sav',/ver % RESTORE: Portable (XDR) SAVE/RESTORE file. % RESTORE: Save file written by phiggins@eo, Wed Feb 13 18:34:38 2008. % RESTORE: IDL version 6.3 (linux, x86). % RESTORE: Restored variable: XSIN. % RESTORE: Restored variable: YSIN. >;) IDL>restore,'sun.sav',/ver % RESTORE: Error opening file. Unit: 100, File: sun.sav No such file or directory % Execution halted at: $MAIN$ >;) IDL>restore,'sun.sav',/ver % RESTORE: Portable (XDR) SAVE/RESTORE file. % RESTORE: Save file written by phiggins@phobos, Wed Feb 13 16:29:50 2008. % RESTORE: IDL version 6.3 (linux, x86). % RESTORE: Restored variable: SUN. >;) IDL>help,sun SUN BYTE = Array[1024, 1024] >;) IDL>tv,sun >;) IDL>tvscl,sun >;) IDL>display,sun % Compiled module: DISPLAY. % Compiled module: IMGEXP. % DISPLAY: is already byte type. No scaling done. >;) IDL>window,xs=600,ys=600 >;) IDL>display,sun % DISPLAY: is already byte type. No scaling done. >;) IDL>device,decomp=0 >;) IDL>loadct,3 % Compiled module: LOADCT. % Compiled module: FILEPATH. % Compiled module: PATH_SEP. % LOADCT: Loading table RED TEMPERATURE >;) IDL>display,sun % DISPLAY: is already byte type. No scaling done. >;) IDL>loadct,40 % LOADCT: Loading table Rainbow + black >;) IDL>display,sun % DISPLAY: is already byte type. No scaling done. >;) IDL>loadct,3 % LOADCT: Loading table RED TEMPERATURE >;) IDL>display,sun % DISPLAY: is already byte type. No scaling done. >;) IDL>print,minmax(sun) 0 255 >;) IDL>display,sun >200 % Compiled module: IMGSCL. >;) IDL>display,sun < 200 >;) IDL>print,total(sun) 1.27978e+08 >;) IDL>print,mean(sun) % Compiled module: MEAN. % Compiled module: MOMENT. 122.050 >;) IDL>sun=reverse(sun) % Compiled module: REVERSE. >;) IDL>display,sun % DISPLAY: is already byte type. No scaling done. >;) IDL>x=findgen(10) >;) IDL>print,reverse(x) 9.00000 8.00000 7.00000 6.00000 5.00000 4.00000 3.00000 2.00000 1.00000 0.00000 >;) IDL>print,sort(x) 0 1 2 3 4 5 6 7 8 9 >;) IDL>print,x[sort(x)] 0.00000 1.00000 2.00000 3.00000 4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 >;) IDL>print,rebin(x,20) 0.00000 0.500000 1.00000 1.50000 2.00000 2.50000 3.00000 3.50000 4.00000 4.50000 5.00000 5.50000 6.00000 6.50000 7.00000 7.50000 8.00000 8.50000 9.00000 9.00000 >;) IDL>print,rebin(x,20,/sample) 0.00000 0.00000 1.00000 1.00000 2.00000 2.00000 3.00000 3.00000 4.00000 4.00000 5.00000 5.00000 6.00000 6.00000 7.00000 7.00000 8.00000 8.00000 9.00000 9.00000 >;) IDL>sz=size(sun) >;) IDL>print,sz 2 1024 1024 1 1048576 >;) IDL>sz=size(sun, sz[1]/4,sz[2]/4) sz=size(sun, sz[1]/4,sz[2]/4) ^ % SIZE: Incorrect number of arguments. >;) IDL>display,rebin(sun, sz[1]/4,sz[2]/4) % DISPLAY: is already byte type. No scaling done. >;) IDL>tvscl,rebin(sun, sz[1]/4,sz[2]/4) >;) IDL>tvscl,rebin(sun, sz[1],sz[2])