Changeset 861 in lmdz_wrf


Ignore:
Timestamp:
Jun 17, 2016, 5:56:11 PM (8 years ago)
Author:
lfita
Message:

Fixing slicing in `DataSetSection_multivars'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r859 r861  
    1258812588                        slicedims[dn]=[imindiff[iidim], imindiff[iidim], None]
    1258912589                else:
    12590                     slicedims[dn]=[np.min(dinds[rightvals][0,:]),                    \
    12591                       np.max(dinds[rightvals][0,:])+1, None]
     12590                    slicedims[dn]=[np.min(dinds), np.max(dinds)+1, None]
    1259212591
    1259312592            iidim = iidim + 1
Note: See TracChangeset for help on using the changeset viewer.