Changeset 2825 in lmdz_wrf for trunk/tools
- Timestamp:
- Apr 28, 2020, 7:12:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2824 r2825 32300 32300 if type(slcddvv) == type([1,2]): 32301 32301 Nvals = np.arange(slcddvv[0], slcddvv[1]+slcddvv[2], \ 32302 slcddvv[2]) 32302 slcddvv[2]).shape[0] 32303 32303 newnc.createDimension(ndim, Nvals) 32304 32304 slicedimv[ndim]= slice(slcddvv[0], slcddvv[1]+slcddvv[2],\ … … 32350 32350 else: 32351 32351 if slicedimv.has_key(dimn): 32352 slcddvv = slicedi mv[dimn]32352 slcddvv = slicedicv[dimn] 32353 32353 if type(slcddvv) != type(int(1)): 32354 32354 Nvals = len(range(slcddvv[0], \ 32355 32355 slcddvv[1]+slcddvv[2], slcddvv[2])) 32356 32356 slicevartot.append(slice(0,Nvals)) 32357 slicevarif.append(sl cddvv)32357 slicevarif.append(slicedimv[dimn]) 32358 32358 else: 32359 32359 slicevarif.append(slicedimv[dimn])
Note: See TracChangeset
for help on using the changeset viewer.