Changeset 2122 in lmdz_wrf


Ignore:
Timestamp:
Aug 31, 2018, 3:48:32 PM (6 years ago)
Author:
lfita
Message:

Fixing 'runmean' in `draw_lines_time'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r2120 r2122  
    26832683
    26842684        if period == '-1':
    2685             varvalues.append(vvobj[:])
     2685            if pointfreq0[0:7] == 'runmean':
     2686                Nstps = int(pointfreq0.split(',')[1])
     2687                print '  Running mean of ', Nstps, 'time steps !!'
     2688                varvalues.append(gen.running_mean(vvobj[:], Nstps, 'vals'))
     2689            else:
     2690                varvalues.append(vvobj[:])
    26862691            dimvalues.append(reftvals)
    26872692            mindvals = np.min(reftvals)
     
    27242729            if pointfreq0[0:7] == 'runmean':
    27252730                Nstps = int(pointfreq0.split(',')[1])
    2726                 varvalues.append(gen.runmean(vvobj[ibeg:iend], Nstps))
     2731                print '  Running mean of ', Nstps, 'time steps !!'
     2732                varvalues.append(gen.runnig_mean(vvobj[ibeg:iend], Nstps, 'vals'))
    27272733            else:
    27282734                varvalues.append(vvobj[ibeg:iend])
Note: See TracChangeset for help on using the changeset viewer.