Changeset 979 in lmdz_wrf
- Timestamp:
- Aug 8, 2016, 5:15:00 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r970 r979 6789 6789 if opern == 'add': 6790 6790 if gen.searchInlist(varobj.ncattrs(), '_FillValue'): 6791 prevals = varvals.filled(0.) 6791 if type(varvals) != type(np.arange(1)): 6792 print type(varvals), type(np.arange(1)) 6793 prevals = varvals.filled(0.) 6794 else: 6795 prevals = varvals 6792 6796 newvarv = newvarv + prevals 6793 6797 else: … … 6797 6801 elif opern == 'sub': 6798 6802 if gen.searchInlist(varobj.ncattrs(), '_FillValue'): 6799 prevals = varvals.filled(0.) 6803 if type(varvals) != type(np.arange(1)): 6804 prevals = varvals.filled(0.) 6805 else: 6806 prevals = varvals 6800 6807 newvarv = newvarv - prevals 6801 6808 else:
Note: See TracChangeset
for help on using the changeset viewer.