def set_var_slice(self, name, start, count, var):
tmp = self.get_var(name).copy()<EOL>start = np.atleast_1d(start)<EOL>count = np.atleast_1d(count)<EOL>slices = [np.s_[i:(i+n)] for i,n in zip(start, count)]<EOL>tmp[slices] = var<EOL>self.set_var(name, tmp)<EOL>
Overwrite the values in variable name with data
from var, in the range (start:start+count).
Start, count can be integers for rank 1, and can be
tuples of integers for higher ranks.
For some implementations it can be equivalent and more efficient to do:
`get_var(name)[start[0]:start[0]+count[0], ..., start[n]:start[n]+count[n]] = var`