[go: up one dir, main page]

Menu

[r1]: / idl_lib / calc_theta.pro  Maximize  Restore  History

Download this file

11 lines (9 with data), 266 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
function calc_theta, temp, plevs, p0, kappa=kappa
if n_elements(p0) eq 0 then p0=1000
if n_elements(kappa) eq 0 then kappa=0.2857
theta=temp
for p=0, n_elements(plevs)-1 do begin
theta[*,*,p]=temp[*,*,p]*(p0/plevs[p])^kappa
endfor
return, theta
end