Changeset 2367 in lmdz_wrf for trunk


Ignore:
Timestamp:
Feb 25, 2019, 4:39:21 PM (6 years ago)
Author:
lfita
Message:

Fixing right slice when variable is 2D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2361 r2367  
    2931029310            slicevv = []
    2931129311            for iid in range(Nvdims):
    29312                 slicevv.append(slice(0,vshape[0]))
     29312                slicevv.append(slice(0,vshape[iid]))
    2931329313            varslc[0] = slicevv
    2931429314            newvarslc[0] = newvarslice
Note: See TracChangeset for help on using the changeset viewer.