Changeset 1946 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jul 18, 2018, 2:15:05 AM (6 years ago)
Author:
lfita
Message:

Fixing....

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r1945 r1946  
    89568956    if type(tdavals) != type(gen.mamat):
    89578957        tdavals = ma.masked_array(tdavals)
    8958     if type(tavals) != type(gen.mamat):
     8958    if type(presvals) != type(gen.mamat):
    89598959        presvals = ma.masked_array(presvals)
    89608960
     
    90529052        kgraphv['collines'] = gen.str_list_rep(kindgraphv[2], ',', Nfiles)
    90539053        kgraphv['kindlines'] = gen.str_list_rep(kindgraphv[3], ',', Nfiles)
    9054         kgraphv['kindmarkers'] = gen.str_list_rep(kindgraphv[4], ',', Nfiles)
     9054        kgraphv['kindmarkers'] = gen.str_list_rep(kindgraphv[4], ';', Nfiles)
    90559055        kgraphv['widthlines'] = gen.str_list_rep(kindgraphv[5], ',', Nfiles)
    90569056    else:
     
    91089108        else:
    91099109            vavals[ifile] = vals
    9110         if type(presvals) != type(gen.mamat):
     9110        if type(pvals) != type(gen.mamat):
    91119111            presvals[ifile] = ma.masked_array(pvals)
    91129112        else:
  • trunk/tools/drawing_tools.py

    r1945 r1946  
    1166311663        kmark = kindgv['kindmarkers'][iline]
    1166411664        kline = kindgv['kindlines'][iline]
    11665         wline = kindgv['widthlines'][iline]
     11665        wline = np.float(kindgv['widthlines'][iline])
    1166611666
    1166711667        # Checking for variable consistency
     
    1168211682        # log scaling in Y, as dictated by the typical meteorological plot
    1168311683        tamask = ta.mask
     11684        if len(tamask.shape) == 0:
     11685            print '    ' + fname + ': values without any masked value!'
     11686            tamask = np.ones((ta.shape), dtype=bool)*tamask
    1168411687
    1168511688        if lline != 'None':
Note: See TracChangeset for help on using the changeset viewer.