Changeset 172 for trunk/SRC/ToBeReviewed/GRILLE/grille.pro
- Timestamp:
- 09/11/06 09:11:26 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/GRILLE/grille.pro
r163 r172 111 111 ;------------------------------------------------------------ 112 112 ;------------------------------------------------------------ 113 pro grille, mask, glam, gphi, gdep, nx, ny, nz, firstx, firsty, firstz, lastx, lasty, lastz, e1, e2, e3, TRI = tri, NOTRI = notri, TOUT = tout, FORPLT = forplt, IFPLTZ = ifpltz, WDEPTH = wdepth, _EXTRA = ex113 pro grille, mask, glam, gphi, gdep, nx, ny, nz, firstx, firsty, firstz, lastx, lasty, lastz, e1, e2, e3, TRI = tri, NOTRI = notri, TOUT = tout, FORPLT = forplt, TYPE = type, WDEPTH = wdepth, _EXTRA = ex 114 114 ;------------------------------------------------------------ 115 115 ; include commons … … 119 119 @cm_4mesh 120 120 @cm_4data 121 @cm_4cal ; for jpt 121 122 IF NOT keyword_set(key_forgetold) THEN BEGIN 122 123 @updatenew … … 354 355 ENDELSE 355 356 ; for the vertical sections with partial steps 356 IF keyword_set( ifpltz) AND keyword_set(key_partialstep) THEN BEGIN357 IF keyword_set(type) AND keyword_set(key_partialstep) THEN BEGIN 357 358 CASE 1 OF 358 ifpltzEQ 'xz' AND ny EQ 1:BEGIN359 type EQ 'xz' AND ny EQ 1:BEGIN 359 360 bottom = total(tmask[firstx:lastx, firsty:lasty, firstz:lastz], 3) 360 361 good = where(bottom NE 0 AND bottom NE nz+keyword_set(wdepth)) … … 370 371 ENDIF 371 372 END 372 ifpltzEQ 'yz' AND nx EQ 1:BEGIN373 type EQ 'yz' AND nx EQ 1:BEGIN 373 374 bottom = total(tmask[firstx:lastx, firsty:lasty, firstz:lastz], 3) 374 375 good = where(bottom NE 0 AND bottom NE nz+keyword_set(wdepth)) … … 387 388 ENDCASE 388 389 ENDIF 390 ; for the vertical sections with roms 391 IF keyword_set(type) AND n_elements(romszinfos) NE 0 THEN BEGIN 392 romsdp = romsdepth() 393 IF romsdp[0] NE -1 THEN BEGIN 394 IF jpt EQ 1 THEN BEGIN 395 CASE type OF 396 'z':gdep = moyenne(temporary(romsdp), 'xy') 397 'xz':gdep = moyenne(temporary(romsdp), 'y') 398 'yz':gdep = moyenne(temporary(romsdp), 'x') 399 'zt':gdep = moyenne(temporary(romsdp), 'xy') 400 ELSE: 401 ENDCASE 402 ENDIF ELSE BEGIN 403 CASE type OF 404 'z':gdep = moyenne(temporary(romsdp), 'xyt') 405 'xz':gdep = grossemoyenne(temporary(romsdp), 'yt') 406 'yz':gdep = grossemoyenne(temporary(romsdp), 'xt') 407 'zt':gdep = grossemoyenne(temporary(romsdp), 'xy') 408 ELSE: 409 ENDCASE 410 ENDELSE 411 IF size(gdep, /n_dimensions) EQ 2 THEN $ 412 gdep = remplit(gdep, niter = 32000, mask = gdep LT 1.E19, /basique, /fillxdir) 413 ENDIF 414 ENDIF 415 ; 389 416 IF testvar(var = key_performance) EQ 2 THEN $ 390 417 print, 'temps grille: Variables se rapportant a la dimension verticale ', systime(1)-tempdeux
Note: See TracChangeset
for help on using the changeset viewer.