Changeset 2830 in lmdz_wrf for trunk/tools
- Timestamp:
- Apr 29, 2020, 3:49:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2829 r2830 8746 8746 var1 = varns1[iv] 8747 8747 var2 = varns2[iv] 8748 print var1 + ' ...'8749 8748 8750 8749 objvar1 = objnc1.variables[var1] 8751 8750 objvar2 = objnc2.variables[var2] 8751 if objvar1.dtype == type('Str') or objvar1.dtype == type(chr(48)) or objvar1.dtype == '|S1': 8752 print warnmsg 8753 print ' ' + fname + ": can not compare variable '" + var1 + "' of type",\ 8754 objvar1.dtype 8755 continue 8756 print var1 + ' ...', objvar1.dtype 8752 8757 8753 8758 Ndim1 = len(objvar1.shape) … … 8832 8837 # Statistical variables 8833 8838 typvar = objvar1.dtype 8834 if typvar == type(int(1)) :8839 if typvar == type(int(1)) or typvar == type(np.int32(1)): 8835 8840 fillValue = gen.fillValueI 8836 8841 elif typvar == type((1.)) or typvar == type(np.float(1.)) or \
Note: See TracChangeset
for help on using the changeset viewer.