- Timestamp:
- Jul 7, 2015, 12:14:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r575 r577 16663 16663 print ' ' + fname + ': non-consecutive slices not ready!!' 16664 16664 quit(-1) 16665 finalmask = maskinf + masksup16665 finalmask = maskinf.mask + masksup.mask 16666 16666 idn = 0 16667 16667 … … 16671 16671 ddn = len(nciobj.dimensions[dn]) 16672 16672 dinds = np.arange(ddn) 16673 rightvals = np.where(finalmask .mask, False, True)16673 rightvals = np.where(finalmask, False, True) 16674 16674 slicedims[dn]=[np.min(dinds[rightvals]), np.max(dinds[rightvals])+1, None] 16675 16675
Note: See TracChangeset
for help on using the changeset viewer.