Ignore:
Timestamp:
01/31/11 16:41:25 (13 years ago)
Author:
smasson
Message:

improve the way to take into account continents in e3t/w

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Computation/e3w_3d.pro

    r447 r450  
    4848; level of the bottom of the ocean 
    4949    bottom = total(tmask[firstxt:lastxt, firstyt:lastyt, *], 3) 
     50    sea = where(bottom NE 0) 
    5051    bottom2 = long(temporary(bottom)) - firstzw 
    5152    bottom  = bottom2 - 1L 
    52     ok  = where(bottom  GE 0 AND bottom  LT nzw) 
    53     ok2 = where(bottom2 GE 0 AND bottom2 LT nzw) 
     53    ok  = inter(sea, where(bottom  GE 0 AND bottom  LT nzw)) 
     54    ok2 = inter(sea, where(bottom2 GE 0 AND bottom2 LT nzw)) 
    5455; apply e3w_ps to e3w_3D at the bottom of the ocean 
    5556    IF ok[0]  NE -1 THEN BEGIN 
Note: See TracChangeset for help on using the changeset viewer.