Guest User

Untitled

a guest
Oct 21st, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #Calculate DCAPE so long as the parcel is cooler than the environment
  2. for i in range(len(p_unsat)-1,-1, -1):
  3. if p_unsat[i] >= startp and tpath_corr[i] < t_unsat_corr[i]:
  4. DCAPE += (-g*((tpath_corr[i]-t_unsat_corr[i])/t_unsat_corr[i])*(h_unsat[i]-h_unsat[i-1]))
  5. if p_unsat[i] >= startp and tpath_corr[i] > t_unsat_corr[i]:
  6. DCAPE += (-g*((tpath_corr[i]-t_unsat_corr[i])/t_unsat_corr[i])*(h_unsat[i]-h_unsat[i-1]))
Add Comment
Please, Sign In to add comment