Changeset 1833 in lmdz_wrf
- Timestamp:
- Mar 20, 2018, 6:37:44 PM (7 years ago)
- Location:
- trunk/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diag_tools.py
r1804 r1833 1097 1097 def Forcompute_potevap_orPM(rho1, ust, uas, vas, tas, ps, qv1, dimns, dimvns): 1098 1098 """ Function to compute potential evapotranspiration following Penman-Monteith 1099 formulation implemented in ORCHIDEE 1099 formulation implemented in ORCHIDEE in src_sechiba/enerbil.f90 1100 1100 Forcompute_potevap_orPM(rho1, uas, vas, tas, ps, qv2, qv1, dimns, dimvns) 1101 1101 [rho1]= air-density at the first layer (assuming [[t],y,m]) [kgm-3] -
trunk/tools/diagnostics.py
r1825 r1833 113 113 combination = variable_combo(opts.varns,opts.ncfile) 114 114 print ' COMBO: ' + combination 115 quit(-1) 116 117 if opts.ncfile is None: 118 print errormsg 119 print ' ' + main + ": No file provided !!" 120 print ' is mandatory to provide a file -f [filename]' 121 quit(-1) 122 123 if opts.dimns is None: 124 print errormsg 125 print ' ' + main + ": No description of dimensions are provided !!" 126 print ' is mandatory to provide description of dimensions as -d [dimn]@[vardimname],... ' 127 quit(-1) 128 129 if opts.varns is None: 130 print errormsg 131 print ' ' + main + ": No variable to diagnose is provided !!" 132 print ' is mandatory to provide a variable to diagnose as -v [diagn]|[varn1]@... ' 115 133 quit(-1) 116 134 … … 792 810 dz = WRFgeop.shape[1] 793 811 # de-staggering 794 var3 = 0.5*(WRFgeop[:,0:dz-1,:,:]+WRFgeop[:,1:dz,:,:]) 812 var3 = 0.5*(WRFgeop[:,0:dz-1,:,:]+WRFgeop[:,1:dz,:,:])/9.8 795 813 var4 = ncobj.variables[depvars[4]][0,:,:] 796 814 … … 916 934 917 935 # WRFpotevap_orPM potential evapotranspiration following Penman-Monteith formulation 918 # implemented in ORCHIDEE as: WRFdens, UST, U10, V10, T2, PSFC, QVAPOR936 # implemented in ORCHIDEE (in src_sechiba/enerbil.f90) as: WRFdens, UST, U10, V10, T2, PSFC, QVAPOR 919 937 elif diagn == 'WRFpotevap_orPM': 920 938 var0 = WRFdens[:,0,:,:] -
trunk/tools/module_ForDiagnostics.f90
r1804 r1833 594 594 ofunc = var_cape_afwa1D(d3, ta(i,j,:,it), hur(i,j,:,it), press(i,j,:,it), zg(i,j,:,it), & 595 595 1, cape(i,j,it), cin(i,j,it), zlfc(i,j,it), plfc(i,j,it), li(i,j,it), parcelmethod) 596 zlfc(i,j,it) = zlfc(i,j,it)/g- hgt(i,j)596 IF (zlfc(i,j,it) /= -1.) zlfc(i,j,it) = zlfc(i,j,it) - hgt(i,j) 597 597 END DO 598 598 END DO … … 797 797 SUBROUTINE compute_potevap_orPM3D(d1, d2, d3, rho1, ust, uas, vas, tas, ps, qv1, potevap) 798 798 ! Subroutine to compute potential evapotranspiration Penman-Monteith formulation implemented in 799 ! ORCHIDEE 799 ! ORCHIDEE in src_sechiba/enerbil.f90 800 800 801 801 IMPLICIT NONE
Note: See TracChangeset
for help on using the changeset viewer.