Changeset 462 for trunk/SRC/Computation/bsf.pro
- Timestamp:
- 04/15/11 19:49:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Computation/bsf.pro
r445 r462 23 23 ; @keyword REFVALUE {type=scalar} {default=0.} 24 24 ; 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) 25 29 ; 26 30 ; @returns {type=2D xy array} … … 59 63 ;- 60 64 ; 61 FUNCTION bsf, z3d, NOSTRUCTURE = nostructure, REFPOINT = refpoint, REFVALUE = refvalue 65 FUNCTION bsf, z3d, NOSTRUCTURE = nostructure, REFPOINT = refpoint, REFVALUE = refvalue, TRANSPORT = transport 62 66 ; 63 67 compile_opt idl2, strictarrsubs … … 81 85 un = fitintobox(temporary(un)) 82 86 ; 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) 87 90 ; compute the bsf 88 bsf = 1.e-6 * total(total(temporary(u n) * temporary(e23), 3), 2, /cumulative)91 bsf = 1.e-6 * total(total(temporary(utr), 3), 2, /cumulative) 89 92 ; set bsf to 0 in the largest continent... no done... 90 93 IF keyword_set(refpoint) THEN BEGIN
Note: See TracChangeset
for help on using the changeset viewer.