Changeset 238 for trunk/SRC/ToBeReviewed/IMAGE/animgif.pro
- Timestamp:
- 03/27/07 15:43:18 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/IMAGE/animgif.pro
r157 r238 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; 6 ; @file_comments 3 ; @file_comments 7 4 ; Build a gif animation 8 5 ; 9 ; @categories 6 ; @categories 10 7 ; Animated drawings. 11 8 ; 12 ; @param NOMFIC {in}{required} 9 ; @param NOMFIC {in}{required} 13 10 ; It is the name of the gif file containing the animation. 14 11 ; Comment: this file is placed in the directory defined by iodir. 15 12 ; 16 ; @uses 13 ; @uses 17 14 ; common.pro 18 15 ; 19 ; @restrictions 16 ; @restrictions 20 17 ; We use the Z buffer to go faster!. 21 18 ; So, if it failed in animgif, you have to do: … … 24 21 ; IDL> retall 25 22 ; 26 ; @restrictions 23 ; @restrictions 27 24 ; If we want to delete the \@common, 28 ; we have to define manually the picture's size 25 ; we have to define manually the picture's size 29 26 ; (variables xsize and ysize) just as iodir. 30 27 ; 31 ; @history 28 ; @history 32 29 ; Guillaume Roullet (grlod\@ipsl.jussieu.fr) 33 30 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 34 31 ; 30/4/1999 35 32 ; 36 ; @version 33 ; @version 37 34 ; $Id$ 38 35 ; 39 36 ;- 40 ;------------------------------------------------------------ 41 ;------------------------------------------------------------ 42 ;------------------------------------------------------------ 37 ; 43 38 PRO animgif, nomfic 44 39 ; … … 53 48 ; It completes the current palette on 256 colors. 54 49 ; 55 red = [rouge, replicate(255, 256-n_elements(rouge))] 56 green = [vert, replicate(255, 256-n_elements(rouge))] 57 blue = [bleu, replicate(255, 256-n_elements(rouge))] 50 red = [rouge, replicate(255, 256-n_elements(rouge))] 51 green = [vert, replicate(255, 256-n_elements(rouge))] 52 blue = [bleu, replicate(255, 256-n_elements(rouge))] 58 53 ; 59 54 ; It rocks on the z device, allowing to create the picture without display it. … … 67 62 device, set_resolution = [xsize, ysize] 68 63 ; 69 ; Beginning of the gif file. Writing of an empty picture. 64 ; Beginning of the gif file. Writing of an empty picture. 70 65 ; 71 66 reinitplt … … 80 75 ; Loop of picture's creation. 81 76 ; 82 calen = TIMEGEN(366, START=JULDAY(1,1,2000)) 77 calen = TIMEGEN(366, START=JULDAY(1,1,2000)) 83 78 debut = where(calen EQ 19810105) 84 79 debut = where(calen EQ 19790105) … … 103 98 ; plt, nlec('sss', date, 'ATF'), label = 2, /noerase 104 99 ; plt, nlec('htoth', date, 'RE3')-nlec('hpycn', date, 'RE3'), 10, 60, int = 5, /inv, /noerase 105 ; domdef, 290,340,-5,15 100 ; domdef, 290,340,-5,15 106 101 ; plt, norme(nlec('unsurf', date, 'RE3'), nlec('vnsurf', date, 'RE3')), 0, 1.2, int = .1, /noerase 107 102 ; … … 109 104 ; 110 105 write_gif,iodir+nomfic,tvrd(),red, green, blue, /multiple 111 ENDFOR 106 ENDFOR 112 107 ;---------------------------------------------------------------- 113 108 ; End of the part we want to change. … … 115 110 ; 116 111 ; Closing of the file. 117 write_gif,iodir+nomfic,/close 112 write_gif,iodir+nomfic,/close 118 113 ; Rerock on terminal X mode. 119 114 ; device, /close
Note: See TracChangeset
for help on using the changeset viewer.