Ignore:
Timestamp:
08/09/06 12:12:54 (18 years ago)
Author:
navarro
Message:

english and nicer header (3a)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildcmd.pro

    r134 r150  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME:buildcmd 
    6 ; 
    7 ; PURPOSE:cette fonction reourne un string qui contient la commande de 
    8 ; lecture et les parametres du trace. 
    9 ; 
    10 ; CATEGORY: 
    11 ; 
    12 ; CALLING SEQUENCE: 
    13 ;  
    14 ; INPUTS: 
    15 ; 
    16 ; KEYWORD PARAMETERS: 
    17 ; 
    18 ; OUTPUTS: 
    19 ; 
    20 ; COMMON BLOCKS: 
    21 ; 
    22 ; SIDE EFFECTS: 
    23 ; 
    24 ; RESTRICTIONS: 
    25 ; 
    26 ; EXAMPLE: 
    27 ; 
    28 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr) 
     5; 
     6; @file_comments 
     7; This function send back a string which contain the reading command  
     8; and drawing's parameters. 
     9; 
     10; @param BASE {in}{required} 
     11; 
     12; @keyword BOXZOOM 
     13; Vector indicating the geographic zone on which we want to cut the map.  
     14; If BOXZOOM has :  
     15;   1 element : The extraction is made on [lon1, lon2, lat1, lat2, 0.,boxzoom[0]] 
     16;   2 elements: The extraction is made on [lon1, lon2, lat1, lat2, boxzoom[0],boxzoom[1]] 
     17;   4 elements: The extraction is made on [Boxzoom, 0, max([gdept, gdepw])] 
     18;   5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 
     19;   6 elements: The extraction is made on Boxzoom  
     20; Where lon1, lon2,lat1,lat2 are global variables defined at the last domdef! 
     21; 
     22; @keyword FORCETYPE 
     23; 
     24; @history 
     25; Sebastien Masson (smasson@lodyc.jussieu.fr) 
     26; 
     27; @version 
     28; $Id$ 
     29; 
     30; @todo 
     31; seb: documenter le param BASE et le keyword FORCETYPE 
    2932; 
    3033;- 
     
    5659;------------------------------------------------------------ 
    5760;--------------- 
    58 ; on determine quelle procedure on va etre appele pour faire le dessin 
    59 ; et le type 
     61; We determinate which procedure we will call to do the drawing and the type 
    6062;--------------- 
    6163  IF keyword_set(forcetype) THEN type = forcetype $ 
     
    8183  endcase 
    8284; 
    83 recherche des options 
     85Search of options 
    8486; 
    8587  options = extractatt(top_uvalue, 'options')    
     
    9496  alreadyvector = extractatt(top_uvalue, 'alreadyvector') 
    9597  alreadyover = extractatt(top_uvalue, 'alreadyoer') 
    96 ; que devons-nous lire ? 
     98; What must we read ? 
    9799  case 1 of 
    98100    alreadyover NE -1:BEGIN 
     
    340342;----------------------- 
    341343;--------------- 
    342 ; determination du nom de la boxzoom  
    343 ;--------------- 
     344; determination of the boxzoom's name. 
    344345  if NOT keyword_set(boxzoom) then widget_control, domainid, get_value = boxzoom 
    345 ; ecriture de celle-ci sous forme d''un string 
     346; Writting of this one as a string 
    346347  box = '['+strtrim(boxzoom[0], 1) 
    347348  for i = 1, (n_elements(boxzoom)-1) < (3+2*(strpos(type, 'z') EQ -1)) do $ 
    348349    box = box+', '+strtrim(boxzoom[i], 1) 
    349 ; pour les [plots en z, box doit avoir par defaut 0,profmax 
     350; For [plots in z, box must have by default 0,profmax 
    350351  if strpos(type, 'z') NE -1 then BEGIN 
    351 ; si + de 1 niveau est selectionne: 
     352; If more than 1 level is selected:  
    352353    widget_control, widget_info(base, find_by_uname = 'dthlv1'), get_value = niv1 
    353354    niv1 = niv1.combobox_index 
     
    372373  ENDIF 
    373374;--------------- 
    374 ; on determine typein 
     375; We determinate typein 
    375376;--------------- 
    376377    IF strpos(type, ' diag ') NE -1 THEN typein = ''''+strmid(type, 0, 4)+'''' $ 
     
    378379;--------------- 
    379380;--------------- 
    380 ; determination de small 
     381; determination of small 
    381382;--------------- 
    382383  ssmall = tostr(smallout) 
    383384;------------------------------------------------------------ 
    384 ; on va definir le string qui contiendra la commande a executer par widgetdessine.pro 
     385; We will define the string which will contain the command to be executed by widgetdessine.pro 
    385386;------------------------------------------------------------ 
    386387  Cmd = [readCmd, procedure+ ', field $' $ 
     
    395396;    print, '---------------' 
    396397;--------------- 
    397 ; on complete et/ou actualise la structure top_uvalue... 
     398; We complete and/or update the structure top_uvalue... 
    398399;--------------- 
    399400  (*top_uvalue[1, findline(top_uvalue, 'nameprocedures')])[numdessinout] = procedure 
Note: See TracChangeset for help on using the changeset viewer.