Changeset 1716 in lmdz_wrf
- Timestamp:
- Dec 13, 2017, 10:39:05 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diag_tools.py
r1715 r1716 36 36 # var_cllmh: Fcuntion to compute cllmh on a 1D column 37 37 # var_clt: Function to compute the total cloud fraction following 'newmicro.F90' from LMDZ using 1D vertical column values 38 # var_ rh: Function to compute relative humidity following 'Tetens' equation (T,P) ...'38 # var_hur: Function to compute relative humidity following 'August - Roche - Magnus' formula 39 39 # var_mslp: Fcuntion to compute mean sea-level pressure 40 40 # var_td: Function to compute dew-point air temperature from temperature and pressure values … … 1267 1267 ####### Variables (as they arrive without dimensions staff) 1268 1268 1269 def var_ rh(p, t, q):1270 """ Function to compute relative humidity following ' Tetens' equation (T,P) ...'1269 def var_hur(p, t, q): 1270 """ Function to compute relative humidity following 'August - Roche - Magnus' formula 1271 1271 [t]= temperature (assuming [[t],z,y,x] in [K]) 1272 1272 [p] = pressure field (assuming in [Pa]) … … 1276 1276 0.250250256174 1277 1277 """ 1278 fname = 'var_ rh'1278 fname = 'var_hur' 1279 1279 1280 1280 # Enthalpy of vaporization [Jkg-1] … … 1293 1293 ws = 0.622*es/(0.01*p-es) 1294 1294 1295 rh= q/(ws*1000.)1296 1297 return rh1295 hur = q/(ws*1000.) 1296 1297 return hur 1298 1298 1299 1299 def var_td(t, p, qv): … … 1391 1391 p = gen.fill_Narray(p, ta*0., filldim=[0,2,3]) 1392 1392 1393 self.values = var_ rh(ta, p, hus)1393 self.values = var_hur(ta, p, hus) 1394 1394 self.dims = [dictdims['time'], dictdims['plev'], dictdims['lat'], \ 1395 1395 dictdims['lon']]
Note: See TracChangeset
for help on using the changeset viewer.