Changeset 767 in lmdz_wrf
- Timestamp:
- May 10, 2016, 2:11:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r766 r767 9679 9679 9680 9680 arguments = '[stats],[fillVals],[coutnVals]' 9681 check_arguments(fname,values,arguments,',')9681 gen.check_arguments(fname,values,arguments,',') 9682 9682 9683 9683 stats=values.split(',')[0] … … 9699 9699 if countVals == 'None': 9700 9700 countV = None 9701 NcountV = 0 9701 9702 else: 9702 9703 if countVals.find(':') != -1: … … 9731 9732 cV = countV[icV].split('@')[0] 9732 9733 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]) 9735 9736 9736 9737 if fillVals is not None: 9737 9738 for ifV in range(NfillV): 9738 fillval = retype(fillV[ifV], dtype)9739 fillval = gen.retype(fillV[ifV], dtype) 9739 9740 field = ma.masked_equal(field, fillval) 9740 9741
Note: See TracChangeset
for help on using the changeset viewer.