Changeset 702 in lmdz_wrf


Ignore:
Timestamp:
Mar 21, 2016, 1:01:00 PM (9 years ago)
Author:
lfita
Message:

Fixing output information on field_stats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r701 r702  
    1376913769        dtype = objfield.dtype
    1377013770
    13771         counts = {}
     13771        counts = []
    1377213772        if countVals is not None:
    1377313773            for icV in range(NcountV):
     
    1377513775                cC = countV[icV].split('@')[1]
    1377613776                countval = retype(cV, dtype)
    13777                 counts[countV[icV]] = [count_cond(field, countval, cC), cC]
     13777                print '  Lluis; ' + fname + ' vals: ',count_cond(field, countval, cC), cC, countval
     13778                counts.append([count_cond(field, countval, cC), cC, countval])
    1377813779
    1377913780        if fillVals is not None:
     
    1379813799            if countVals is not None:
    1379913800                for icV in range(NcountV):
    13800                     print '    ' + fname + " N values '" + countV[icV][1] + "'",     \
    13801                       countV[icV][0], ':', counts[countV[icV]]
     13801                    convals = counts[icV]
     13802                    print "    Fstats N values '" + convals[1] + "'", convals[2],    \
     13803                      ':', convals[0]
    1380213804        else:
    1380313805            print errormsg
Note: See TracChangeset for help on using the changeset viewer.