def cor_IAdep_2D(self, mask=None, corCode=3, invert=False): """ if invert==True, the data is mulitplied by the correction factor, instead of being divided by this is useful for obtaining the correction factor itself for each pixel """ dm = np.ones((self.height, self.width), np.int32) if mask is not None: dm *= (1 - mask.map) * self.data else: dm *= self.data RQconv.cor_IAdep_2D(dm, self.exp, corCode, invert) self.data = dm