Changeset 376 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 20, 2015, 12:01:52 PM (10 years ago)
Author:
lfita
Message:

Adding in 'variables_values' a non-checking for statistics for that variables with a name which contents a statistics section
Fixing minor issues in the 'variables_values' file

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r372 r376  
    736736    stats=['min','max','mean','stdv', 'sum']
    737737
     738# Variables with a statistical section on their name...
     739    NOstatsvars = ['zmaxth', 'zmax_th', 'lmax_th', 'lmaxth']
     740
    738741    ifst = False
    739     for st in stats:
    740         if varName.find(st) > -1:
    741             print '    '+ fname + ": varibale '" + varName + "' with a statistical "+\
    742               " surname: '",st,"' !!"
    743             Lst = len(st)
    744             LvarName = len(varName)
    745             varn = varName[0:LvarName - Lst]
    746             ifst = True
    747             break
     742    if not searchInlist(NOstatsvars, varName.lower()):
     743        for st in stats:
     744            if varName.find(st) > -1:
     745                print '    '+ fname + ": varibale '" + varName + "' with a " +       \
     746                  "statistical surname: '",st,"' !!"
     747                Lst = len(st)
     748                LvarName = len(varName)
     749                varn = varName[0:LvarName - Lst]
     750                ifst = True
     751                break
    748752    if not ifst:
    749753        varn = varName
     
    38143818                if y.shape[0] == dimyv.shape[0]:
    38153819                    for i in range(y.shape[1]):
    3816                         y[:,i] = dimyv
     3820                        y[i,:] = dimyv
    38173821                else:
    38183822                    for i in range(y.shape[0]):
    3819                         y[i,:] = dimyv
     3823                        y[:,i] = dimyv
    38203824
    38213825#    plt.rc('text', usetex=True)
  • trunk/tools/variables_values.dat

    r375 r376  
    4848LCLDH, clh, high_level_cloud_area_fraction, 0., 1., high|level|(p|<|440|hPa)|cloud|fraction, 1, gist_gray
    4949High-level cloudiness, clh, high_level_cloud_area_fraction, 0., 1., high|level|(p|<|440|hPa)|cloud|fraction, 1, gist_gray
    50 clmf, clmf, cloud_base_max_flux, -0.3, 0.3, cloud|base|max|flux, kgm-2s-1, seismic
    51 fbase, clmf, cloud_base_max_flux, -0.3, 0.3, cloud|base|max|flux, kgm-2s-1, seismic
    52 LFBASE, clmf, cloud_base_max_flux, -0.3, 0.3, cloud|base|max|flux, kgm-2s-1, seismic
     50clmf, clmf, cloud_base_mass_flux, -0.3, 0.3, cloud|base|mass|flux, kgm-2s-1, seismic
     51fbase, clmf, cloud_base_mass_flux, -0.3, 0.3, cloud|base|mass|flux, kgm-2s-1, seismic
     52LFBASE, clmf, cloud_base_mass_flux, -0.3, 0.3, cloud|base|mass|flux, kgm-2s-1, seismic
    5353clp, clp, cloud_base_pressure, -0.3, 0.3, cloud|base|pressure, Pa, Reds
    5454pbase, clp, cloud_base_pressure, -0.3, 0.3, cloud|base|pressure, Pa, Reds
Note: See TracChangeset for help on using the changeset viewer.