Changeset 1113 in lmdz_wrf for trunk


Ignore:
Timestamp:
Sep 22, 2016, 2:55:05 PM (8 years ago)
Author:
lfita
Message:

Adding matrix printing in `field_stats'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1112 r1113  
    1076610766        varstats = [varn]
    1076710767
     10768    statsvariable = {}
    1076810769    print '  ' + fname + " file: '" + ncfile + "'..."
    1076910770    print '  ' + fname + '______ ______ _____ ____ ___ __ _'
     
    1081010811                    print "    Fstats N values '" + convals[1] + "'", convals[2],    \
    1081110812                      ':', convals[0]
     10813            statsvariable[vn] = [minv, maxv, meanv, mean2v, varv, convals[0]]
    1081210814        else:
    1081310815            print errormsg
     
    1081710819
    1081810820    ncobj.close()
     10821    print '  Matrix of the statisitcs _______'
     10822    print '  '
     10823    print '  varn    min       max       mean      mean2     var       count(', +    \
     10824      convals[1] + ',',convals[2],')'
     10825    for key in statsvariable.keys():
     10826        print statsvariable[key]
    1081910827
    1082010828    return
Note: See TracChangeset for help on using the changeset viewer.