diff --git a/pyicon/pyicon_IconData.py b/pyicon/pyicon_IconData.py index a9515ba62fe7e475f78902c4a1442677018a1f13..aaaf8d8714be38d6f656af9a6f8a2508264da58e 100644 --- a/pyicon/pyicon_IconData.py +++ b/pyicon/pyicon_IconData.py @@ -924,10 +924,10 @@ class IconVariable(object): self.data[self.mask] = np.ma.masked return - def interp_to_rectgrid(self, fpath_ckdtree, mask_reg=None, indx='all', indy='all'): + def interp_to_rectgrid(self, fpath_ckdtree, mask_reg=None, lon_reg=None, lat_reg=None, indx='all', indy='all'): if self.isinterpolated: raise ValueError('::: Variable %s is already interpolated. :::'%self.name) - self.lon, self.lat, self.data = interp_to_rectgrid(self.data, fpath_ckdtree, mask_reg=mask_reg, indx=indx, indy=indy, coordinates=self.coordinates) + self.lon, self.lat, self.data = interp_to_rectgrid(self.data, fpath_ckdtree, mask_reg=mask_reg, lon_reg=lon_reg, lat_reg=lat_reg, indx=indx, indy=indy, coordinates=self.coordinates) return def interp_to_section(self, fpath_ckdtree):