Ignore:
Timestamp:
04/15/11 19:49:48 (13 years ago)
Author:
smasson
Message:

get time axis even when using /timestep keyword in read_ncdfSRC/ToBeReviewed/LECTURE/read_ncdf.pro

File:
1 edited

Legend:

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

    r445 r462  
    2323; @keyword REFVALUE {type=scalar} {default=0.} 
    2424; the bsf value that we want to speficy at the position defined by refpoint 
     25; 
     26; @keyword TRANSPORT {type=scalar: 0 or 1} {default=0.} 
     27; activate to specify that z3d is not a zonal current but a zonal 
     28; transport (e2u*e3u*un) 
    2529; 
    2630; @returns {type=2D xy array} 
     
    5963;- 
    6064; 
    61 FUNCTION bsf, z3d, NOSTRUCTURE = nostructure, REFPOINT = refpoint, REFVALUE = refvalue 
     65FUNCTION bsf, z3d, NOSTRUCTURE = nostructure, REFPOINT = refpoint, REFVALUE = refvalue, TRANSPORT = transport 
    6266; 
    6367  compile_opt idl2, strictarrsubs 
     
    8185  un = fitintobox(temporary(un)) 
    8286; 
    83   e23 = e3u_3d(/e2) 
    84 ; 
    85 ; mask the array 
    86   un = temporary(umsk) * temporary(un) 
     87; current -> transport 
     88  IF NOT keyword_set(transport) THEN un = temporary(un) * e3u_3d(/e2) 
     89  utr = temporary(umsk) * temporary(un) 
    8790; compute the bsf 
    88   bsf = 1.e-6 * total(total(temporary(un) * temporary(e23), 3), 2, /cumulative) 
     91  bsf = 1.e-6 * total(total(temporary(utr), 3), 2, /cumulative) 
    8992; set bsf to 0 in the largest continent... no done... 
    9093  IF keyword_set(refpoint) THEN BEGIN 
Note: See TracChangeset for help on using the changeset viewer.