Changeset 150 for trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildcmd.pro
- Timestamp:
- 08/09/06 12:12:54 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildcmd.pro
r134 r150 3 3 ;------------------------------------------------------------ 4 4 ;+ 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 29 32 ; 30 33 ;- … … 56 59 ;------------------------------------------------------------ 57 60 ;--------------- 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 60 62 ;--------------- 61 63 IF keyword_set(forcetype) THEN type = forcetype $ … … 81 83 endcase 82 84 ; 83 ; recherche desoptions85 ; Search of options 84 86 ; 85 87 options = extractatt(top_uvalue, 'options') … … 94 96 alreadyvector = extractatt(top_uvalue, 'alreadyvector') 95 97 alreadyover = extractatt(top_uvalue, 'alreadyoer') 96 ; que devons-nous lire?98 ; What must we read ? 97 99 case 1 of 98 100 alreadyover NE -1:BEGIN … … 340 342 ;----------------------- 341 343 ;--------------- 342 ; determination du nom de la boxzoom 343 ;--------------- 344 ; determination of the boxzoom's name. 344 345 if NOT keyword_set(boxzoom) then widget_control, domainid, get_value = boxzoom 345 ; ecriture de celle-ci sous forme d''unstring346 ; Writting of this one as a string 346 347 box = '['+strtrim(boxzoom[0], 1) 347 348 for i = 1, (n_elements(boxzoom)-1) < (3+2*(strpos(type, 'z') EQ -1)) do $ 348 349 box = box+', '+strtrim(boxzoom[i], 1) 349 ; pour les [plots en z, box doit avoir par defaut 0,profmax350 ; For [plots in z, box must have by default 0,profmax 350 351 if strpos(type, 'z') NE -1 then BEGIN 351 ; si + de 1 niveau est selectionne:352 ; If more than 1 level is selected: 352 353 widget_control, widget_info(base, find_by_uname = 'dthlv1'), get_value = niv1 353 354 niv1 = niv1.combobox_index … … 372 373 ENDIF 373 374 ;--------------- 374 ; on determine typein375 ; We determinate typein 375 376 ;--------------- 376 377 IF strpos(type, ' diag ') NE -1 THEN typein = ''''+strmid(type, 0, 4)+'''' $ … … 378 379 ;--------------- 379 380 ;--------------- 380 ; determination desmall381 ; determination of small 381 382 ;--------------- 382 383 ssmall = tostr(smallout) 383 384 ;------------------------------------------------------------ 384 ; on va definir le string qui contiendra la commande a executer parwidgetdessine.pro385 ; We will define the string which will contain the command to be executed by widgetdessine.pro 385 386 ;------------------------------------------------------------ 386 387 Cmd = [readCmd, procedure+ ', field $' $ … … 395 396 ; print, '---------------' 396 397 ;--------------- 397 ; on complete et/ou actualise lastructure top_uvalue...398 ; We complete and/or update the structure top_uvalue... 398 399 ;--------------- 399 400 (*top_uvalue[1, findline(top_uvalue, 'nameprocedures')])[numdessinout] = procedure
Note: See TracChangeset
for help on using the changeset viewer.