def masked_4D_arrays_itr(self):
    arrays = self.to_array(kper=0, mask=True)
    for (name, array) in arrays.items():
        m4d = np.zeros((self._model.nper, self._model.nlay, self._model.nrow, self._model.ncol))
        m4d[0, :, :, :] = array
        for kper in range(1, self._model.nper):
            arrays = self.to_array(kper=kper, mask=True)
            for (tname, array) in arrays.items():
                if (tname == name):
                    m4d[kper, :, :, :] = array
        (yield (name, m4d))
def masked_4D_arrays_itr(self):
    arrays = self.to_array(kper=0, mask=True)
    for (name, array) in arrays.items():
        m4d = np.zeros((self._model.nper, self._model.nlay, self._model.nrow, self._model.ncol))
        m4d[0, :, :, :] = array
        for kper in range(1, self._model.nper):
            arrays = self.to_array(kper=kper, mask=True)
            for (tname, array) in arrays.items():
                if (tname == name):
                    m4d[kper, :, :, :] = array
        (yield (name, m4d))