Changeset 424 for trunk/SRC/ToBeReviewed/CALCULS/grossemoyenne.pro
- Timestamp:
- 03/08/10 17:48:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/CALCULS/grossemoyenne.pro
r378 r424 20 20 ; [vert2], [vert1, vert2],[lon1, lon2, lat1, lat2], 21 21 ; [lon1, lon2, lat1, lat2, vert2],[lon1, lon2, lat1, lat2, vert1,vert2] 22 ; 23 ; @keyword KEEPBOTTOM {default=0}{type=scalar: 0 or 1} 24 ; used only with partial steps (key_partialstep /= 0). In partial 25 ; steps, bottom points are not located at the same depth => they 26 ; should not be averaged together along x and/or y direction if there 27 ; is no average along z. In this case bottom ponts are set to 28 ;!values.f_nan before doing any call to total. 22 29 ; 23 30 ; @keyword NAN … … 81 88 ; 82 89 ;- 83 FUNCTION grossemoyenne, tab, direc, BOXZOOM=boxzoom, INTEGRATION=integration $90 FUNCTION grossemoyenne, tab, direc, BOXZOOM=boxzoom, INTEGRATION=integration, KEEPBOTTOM = keepbottom $ 84 91 , NAN=nan, NODOMDEF=nodomdef, WDEPTH=wdepth $ 85 92 , SPATIALFIRST=spatialfirst, TEMPORALFIRST=temporalfirst $ … … 387 394 echelle = reform(echelle, nx, ny, nz, jpt, /over) 388 395 IF keyword_set(key_partialstep) AND bottom[0] NE -1 $ 389 AND nx NE 1 THEN BEGIN396 AND nx NE 1 AND NOT keyword_set(keepbottom) THEN BEGIN 390 397 IF msknan[0] EQ -1 THEN BEGIN 391 398 msknan = replicate(1b, nx, ny, nz, jpt) … … 416 423 echelle = reform(echelle, nx, ny, nz, jpt, /over) 417 424 IF keyword_set(key_partialstep) AND bottom[0] NE -1 $ 418 AND ny NE 1 THEN BEGIN425 AND ny NE 1 AND NOT keyword_set(keepbottom) THEN BEGIN 419 426 IF msknan[0] EQ -1 THEN BEGIN 420 427 msknan = replicate(1b, nx, ny, nz, jpt) … … 468 475 echelle = reform(echelle, nx, ny, nz, jpt, /over) 469 476 IF keyword_set(key_partialstep) AND bottom[0] NE -1 $ 470 AND nx*ny NE 1 THEN BEGIN477 AND nx*ny NE 1 AND NOT keyword_set(keepbottom) THEN BEGIN 471 478 IF msknan[0] EQ -1 THEN BEGIN 472 479 msknan = replicate(1b, nx, ny, nz, jpt)
Note: See TracChangeset
for help on using the changeset viewer.