- Timestamp:
- Apr 30, 2015, 5:39:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r405 r406 14071 14071 newdimvs = [] 14072 14072 14073 idorig = Norigdims - 114073 idorig = 0 14074 14074 for idn in range(Norigdims + 1): 14075 14075 if idn == position: … … 14079 14079 newdimns.append(vardims[idorig]) 14080 14080 newdimvs.append(varobj.shape[idorig]) 14081 idorig = idorig -114081 idorig = idorig + 1 14082 14082 14083 14083 # New variable … … 14085 14085 for inewdim in range(size): 14086 14086 slicev = [] 14087 idorig = 0 14087 14088 for idn in range(Norigdims + 1): 14088 14089 if idn == position: … … 14090 14091 else: 14091 14092 slicev.append(slice(0,varobj.shape[idorig])) 14092 14093 idorig = idorig + 1 14094 14093 14095 newvarv[tuple(slicev)] = varobj[:] 14094 14096
Note: See TracChangeset
for help on using the changeset viewer.