Changeset 1833 in lmdz_wrf


Ignore:
Timestamp:
Mar 20, 2018, 6:37:44 PM (7 years ago)
Author:
lfita
Message:

Fixing calculation of afwa unstable indices

Location:
trunk/tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diag_tools.py

    r1804 r1833  
    10971097def Forcompute_potevap_orPM(rho1, ust, uas, vas, tas, ps, qv1, dimns, dimvns):
    10981098    """ Function to compute potential evapotranspiration following Penman-Monteith
    1099       formulation implemented in ORCHIDEE
     1099      formulation implemented in ORCHIDEE in src_sechiba/enerbil.f90
    11001100    Forcompute_potevap_orPM(rho1, uas, vas, tas, ps, qv2, qv1, dimns, dimvns)
    11011101      [rho1]= air-density at the first layer (assuming [[t],y,m]) [kgm-3]
  • trunk/tools/diagnostics.py

    r1825 r1833  
    113113    combination = variable_combo(opts.varns,opts.ncfile)
    114114    print '     COMBO: ' + combination
     115    quit(-1)
     116
     117if 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
     123if 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
     129if 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]@... '
    115133    quit(-1)
    116134
     
    792810        dz = WRFgeop.shape[1]
    793811        # 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
    795813        var4 = ncobj.variables[depvars[4]][0,:,:]
    796814
     
    916934
    917935# WRFpotevap_orPM potential evapotranspiration following Penman-Monteith formulation
    918 #   implemented in ORCHIDEE as: WRFdens, UST, U10, V10, T2, PSFC, QVAPOR
     936#   implemented in ORCHIDEE (in src_sechiba/enerbil.f90) as: WRFdens, UST, U10, V10, T2, PSFC, QVAPOR
    919937    elif diagn == 'WRFpotevap_orPM':
    920938        var0 = WRFdens[:,0,:,:]
  • trunk/tools/module_ForDiagnostics.f90

    r1804 r1833  
    594594          ofunc = var_cape_afwa1D(d3, ta(i,j,:,it), hur(i,j,:,it), press(i,j,:,it), zg(i,j,:,it),     &
    595595            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)
    597597        END DO
    598598      END DO
     
    797797  SUBROUTINE compute_potevap_orPM3D(d1, d2, d3, rho1, ust, uas, vas, tas, ps, qv1, potevap)
    798798! Subroutine to compute potential evapotranspiration Penman-Monteith formulation implemented in
    799 !   ORCHIDEE
     799!   ORCHIDEE in src_sechiba/enerbil.f90
    800800
    801801    IMPLICIT NONE
Note: See TracChangeset for help on using the changeset viewer.