Changeset 767 in lmdz_wrf


Ignore:
Timestamp:
May 10, 2016, 2:11:15 PM (9 years ago)
Author:
lfita
Message:

Addin 'gen' staff...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r766 r767  
    96799679
    96809680    arguments = '[stats],[fillVals],[coutnVals]'
    9681     check_arguments(fname,values,arguments,',')
     9681    gen.check_arguments(fname,values,arguments,',')
    96829682
    96839683    stats=values.split(',')[0]
     
    96999699    if countVals == 'None':
    97009700        countV = None
     9701        NcountV = 0
    97019702    else:
    97029703        if countVals.find(':') != -1:
     
    97319732                cV = countV[icV].split('@')[0]
    97329733                cC = countV[icV].split('@')[1]
    9733                 countval = retype(cV, dtype)
    9734                 counts.append([count_cond(field, countval, cC), cC, countval])
     9734                countval = gen.retype(cV, dtype)
     9735                counts.append([gen.count_cond(field, countval, cC), cC, countval])
    97359736
    97369737        if fillVals is not None:
    97379738            for ifV in range(NfillV):
    9738                 fillval = retype(fillV[ifV], dtype)
     9739                fillval = gen.retype(fillV[ifV], dtype)
    97399740                field = ma.masked_equal(field, fillval)
    97409741
Note: See TracChangeset for help on using the changeset viewer.