Changeset 577 in lmdz_wrf


Ignore:
Timestamp:
Jul 7, 2015, 12:14:46 PM (10 years ago)
Author:
lfita
Message:

Making the 'DataSetSection_multivars' function retro usable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r575 r577  
    1666316663            print '  ' + fname + ': non-consecutive slices not ready!!'
    1666416664            quit(-1)
    16665         finalmask = maskinf + masksup
     16665        finalmask = maskinf.mask + masksup.mask
    1666616666        idn = 0
    1666716667
     
    1667116671            ddn = len(nciobj.dimensions[dn])
    1667216672            dinds = np.arange(ddn)
    16673             rightvals = np.where(finalmask.mask, False, True)
     16673            rightvals = np.where(finalmask, False, True)
    1667416674            slicedims[dn]=[np.min(dinds[rightvals]), np.max(dinds[rightvals])+1, None]
    1667516675
Note: See TracChangeset for help on using the changeset viewer.