Changeset 1919 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jun 18, 2018, 4:18:15 PM (6 years ago)
Author:
lfita
Message:

Adding example and removing spurious printing test from 'ASCIIfile_stats'

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic.py

    r1918 r1919  
    8585## e.g. # generic.py -o wdismean -S 0.005@0.005,0.@1.@2.@3.
    8686## e.g. # generic.py -o WRFsetup -S '/home/lluis/estudios/RELAMPAGO/SimCoor/UBA/namelist.input@/home/lluis/estudios/RELAMPAGO/SimCoor/SMN/namelist.input@/home/lluis/estudios/RELAMPAGO/SimCoor/NOA-IERSD/namelist.input@/home/lluis/estudios/RELAMPAGO/SimCoor/UBAmili/namelist.input,basic,textabrow'
     87## e.g. # generic.py -o ASCIIfile_stats -S times_CDXWRF1.dat,#,R
    8788
    8889operationnames = "'" + gen.numVector_String(operations, "', '") + "'"
  • trunk/tools/generic_tools.py

    r1918 r1919  
    1329013290            ch1 = linev[0:1]
    1329113291            if not searchInlist(comments, ch1):
    13292                 print "'" + linev + "'"
    1329313292                values.append(typemod(linev,kind))
    1329413293
     
    1330413303   
    1330513304    print "# Statistics of '" + filen + "' _______"
    13306     print '#@# min:', minv
    13307     print '#@# max:', maxv
    13308     print '#@# mean:', meanv
    13309     print '#@# stddev:', stdv
    13310     print '#@# quantiles:', quantv.quantilesv
     13305    print '  #@# min:', minv
     13306    print '  #@# max:', maxv
     13307    print '  #@# mean:', meanv
     13308    print '  #@# stddev:', stdv
     13309    print '  #@# quantiles:', quantv.quantilesv
    1331113310
    1331213311    quantS = []
    1331313312    for iq in quantv.quantilesv: quantS.append(str(iq))
    1331413313
    13315     print '#@# allvalues; min:' + str(minv) + ';max:' + str(maxv) + ';mean:' +       \
     13314    print '  #@# allvalues; min:' + str(minv) + ';max:' + str(maxv) + ';mean:' +       \
    1331613315      str(meanv) + ';stddev:' + str(stdv) + ';quant:' + ','.join(quantS)
    1331713316
Note: See TracChangeset for help on using the changeset viewer.