Ignore:
Timestamp:
07/07/06 11:57:27 (18 years ago)
Author:
navarro
Message:

english and nicer header (1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/IMAGE/animgif.pro

    r114 r133  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME:animgif 
    65; 
    7 ; PURPOSE:construire une animation gif 
     6; @file_comments  
     7; Build a gif animation 
    88; 
    9 ; CATEGORY:pour faire des dessins animes 
     9; @categories Animated drawings. 
    1010; 
    11 ; CALLING SEQUENCE:animgif, 'toto.gif' 
     11; @param toto.gif {in}{required} It is the name of the gif file containing the animation. 
     12;                         Comment: this file is placed in the directory defined by iodir. 
    1213; 
    13 ; INPUTS:toto.gif: c''est le nom du fichier gif contenant 
    14 ; l''animation. Rq ce fichier est place dans le repertoire definit par 
    15 ; iodir. 
     14; @uses common.pro 
    1615; 
    17 ; KEYWORD PARAMETERS: 
    18 ; 
    19 ; OUTPUTS: 
    20 ; 
    21 ; COMMON BLOCKS: 
    22 ;       common.pro 
    23 ; 
    24 ; SIDE EFFECTS:on utilise le Z buffer pour aller plus vite!. 
    25 ;              donc si on plante ds animgif il faut faire: 
     16; @restrictions We use the Z buffer to go faster!. 
     17;              So, if it failed in animgif, you have to do: 
    2618;              IDL> device, /close 
    2719;              IDL> set_plot, 'x' 
    2820;              IDL> retall 
    2921; 
    30 ; RESTRICTIONS: si on veut supprimer le @common, 
    31 ;               il faut definir a la main la taille de l''image (les 
    32 ;               variables xsize et ysize) ainsi que iodir. 
     22; @restrictions If we want to delete the @common, 
     23;               we have to define manually the picture's size  
     24;               (variables xsize and ysize) just as iodir. 
    3325; 
    34 ; EXAMPLE: 
     26; @history Guillaume Roullet (grlod@ipsl.jussieu.fr) 
     27;          Sebastien Masson (smasson@lodyc.jussieu.fr) 
     28;          30/4/1999 
    3529; 
    36 ; MODIFICATION HISTORY: Guillaume Roullet (grlod@ipsl.jussieu.fr) 
    37 ;                       Sebastien Masson (smasson@lodyc.jussieu.fr) 
    38 ;                       30/4/1999 
     30; @version $Id$ 
     31; 
    3932;- 
    4033;------------------------------------------------------------ 
     
    4740@common 
    4841; 
    49 recupere la palette de couleur et la place dans rouge, vert, bleu 
     42It recuperates the color palette and put it in red, green, blue. 
    5043; 
    5144   tvlct,  rouge,vert,bleu,/get 
    5245; 
    53 complete la palette courante sur 256 couleurs 
     46It completes the current palette on 256 colors. 
    5447; 
    5548   red = [rouge, replicate(255, 256-n_elements(rouge))]  
     
    5750   blue = [bleu, replicate(255, 256-n_elements(rouge))]  
    5851; 
    59 ; bascule sur le z device, permettant de creer l''image sans 
    60 ; l''afficher 
     52; It rocks on the z device, allowing to create the picture without display it. 
    6153   thisOS = !VERSION.OS_FAMILY 
    6254   thisOS = STRMID(thisOS, 0, 3) 
    6355   thisOS = STRUPCASE(thisOS) 
    6456   set_plot, 'z' 
    65 ; taille de l''image (en nombre de pixel: 
     57; size of the picture (in pixel): 
    6658   xsize = 30*(min(page_size, max = ma)*key_portrait + ma*(1-key_portrait)) 
    6759   ysize = 30*(min(page_size, max = ma)*(1-key_portrait) + ma*key_portrait) 
    6860   device, set_resolution = [xsize, ysize] 
    6961; 
    70 ; commencement du fichier gif. ecriture d''une image vide  
     62; Beginning of the gif file. Writing of an empty picture.  
    7163; 
    7264   reinitplt 
     
    7668; 
    7769;---------------------------------------------------------------- 
    78 ; debut de la partie a changer 
     70; Beggining of the part we want to change. 
    7971;---------------------------------------------------------------- 
    8072; 
    81 ; boucle de creation de l''image 
     73; Loop of picture's creation. 
    8274; 
    8375   calen = TIMEGEN(366, START=JULDAY(1,1,2000))  
     
    10799;      plt, norme(nlec('unsurf', date, 'RE3'), nlec('vnsurf', date, 'RE3')), 0, 1.2, int = .1, /noerase 
    108100; 
    109 ;     Ecriture de l''image dans le fichier .gif 
     101;     Writing of the picture in the file .gif. 
    110102; 
    111103      write_gif,iodir+nomfic,tvrd(),red, green, blue, /multiple 
    112104   ENDFOR  
    113105;---------------------------------------------------------------- 
    114 ; fin de la partie a changer 
     106; End of the part we want to change. 
    115107;---------------------------------------------------------------- 
    116108; 
    117 ; fermeture du fichier 
     109; Closing of the file. 
    118110   write_gif,iodir+nomfic,/close  
    119 ; rebascule en mode terminal X 
    120    device, /close 
     111; Rerock on terminal X mode. 
     112;   device, /close 
    121113   CASE thisOS of 
    122114      'MAC': SET_PLOT, thisOS 
Note: See TracChangeset for help on using the changeset viewer.