Changeset 424 for trunk/SRC/ToBeReviewed/CALCULS/moyenne.pro
- Timestamp:
- 03/08/10 17:48:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/CALCULS/moyenne.pro
r370 r424 23 23 ; [lon1, lon2, lat1, lat2, vert1,vert2] 24 24 ; 25 ; @keyword KEEPBOTTOM {default=0}{type=scalar: 0 or 1} 26 ; used only with partial steps (key_partialstep /= 0). In partial 27 ; steps, bottom points are not located at the same depth => they 28 ; should not be averaged together along x and/or y direction if there 29 ; is no average along z. In this case bottom ponts are set to 30 ;!values.f_nan before doing any call to total. 31 ; 25 32 ; @keyword NAN 26 33 ; not a number, we activate it if we want to average without considerate some masked values of TAB. … … 65 72 ; 66 73 ;- 67 FUNCTION moyenne, tab, direc, BOXZOOM=boxzoom, INTEGRATION=integration $ 68 , NAN=nan, NODOMDEF=nodomdef, WDEPTH=wdepth $ 69 , _EXTRA=ex 74 FUNCTION moyenne, tab, direc, BOXZOOM=boxzoom, INTEGRATION=integration, KEEPBOTTOM = keepbottom $ 75 , NAN=nan, NODOMDEF=nodomdef, WDEPTH=wdepth, _EXTRA=ex 70 76 ; 71 77 compile_opt idl2, strictarrsubs … … 363 369 e13 = reform(e13, nx, ny, nz, /over) 364 370 IF keyword_set(key_partialstep) AND bottom[0] NE -1 $ 365 AND nx NE 1 THEN BEGIN371 AND nx NE 1 AND NOT keyword_set(keepbottom) THEN BEGIN 366 372 IF msknan[0] EQ -1 THEN BEGIN 367 373 msknan = replicate(1b, nx, ny, nz) … … 391 397 e23 = reform(e23, nx, ny, nz, /over) 392 398 IF keyword_set(key_partialstep) AND bottom[0] NE -1 $ 393 AND ny NE 1 THEN BEGIN399 AND ny NE 1 AND NOT keyword_set(keepbottom) THEN BEGIN 394 400 IF msknan[0] EQ -1 THEN BEGIN 395 401 msknan = replicate(1b, nx, ny, nz) … … 443 449 e123 = reform(e123, nx, ny, nz, /over) 444 450 IF keyword_set(key_partialstep) AND bottom[0] NE -1 $ 445 AND nx*ny NE 1 THEN BEGIN451 AND nx*ny NE 1 AND NOT keyword_set(keepbottom) THEN BEGIN 446 452 IF msknan[0] EQ -1 THEN BEGIN 447 453 msknan = replicate(1b, nx, ny, nz)
Note: See TracChangeset
for help on using the changeset viewer.