Hi @AlexeyPechnikov
While working with the Imperial_Valley_Subsidence.ipynb notebook, I encountered an error at the following code line:
100m antialiasing Gaussian filter and multilooking (spatial averaging)
intf, corr = stack.phasediff(baseline.tolist(), wavelength=100, goldstein=32).downsample(30).compute()
Error received:
AttributeError: 'Stack' object has no attribute 'phasediff'
To resolve this, I first checked whether the phasediff function exists in the current API and confirmed that it is not available. I then tried an alternative approach using pairs() for interferogram generation:
pairs = stack.pairs(baseline.tolist())
intf = pairs.gaussian(wavelength=100).downsample(30).compute()
However, this resulted in the following error:
ValueError: weight must be a BatchUnit with the same keys as self
After that, I attempted to use the align() function, but encountered another error:
TypeError: align() only works with Batch (unwrapped) or BatchWrap phase data, not BatchComplex
Summary:
The phasediff function used in the notebook does not exist in the currently installed insardev version. Additionally, the alternative approaches using gaussian() and align() also fail due to API mismatches and data type incompatibilities.
Do you have any suggestions for a correct or updated workflow compatible with the current API version?

Hi @AlexeyPechnikov
While working with the Imperial_Valley_Subsidence.ipynb notebook, I encountered an error at the following code line:
100m antialiasing Gaussian filter and multilooking (spatial averaging)
intf, corr = stack.phasediff(baseline.tolist(), wavelength=100, goldstein=32).downsample(30).compute()
Error received:
AttributeError: 'Stack' object has no attribute 'phasediff'
To resolve this, I first checked whether the phasediff function exists in the current API and confirmed that it is not available. I then tried an alternative approach using pairs() for interferogram generation:
pairs = stack.pairs(baseline.tolist())
intf = pairs.gaussian(wavelength=100).downsample(30).compute()
However, this resulted in the following error:
ValueError:
weightmust be a BatchUnit with the same keys asselfAfter that, I attempted to use the align() function, but encountered another error:
TypeError: align() only works with Batch (unwrapped) or BatchWrap phase data, not BatchComplex
Summary:
The phasediff function used in the notebook does not exist in the currently installed insardev version. Additionally, the alternative approaches using gaussian() and align() also fail due to API mismatches and data type incompatibilities.
Do you have any suggestions for a correct or updated workflow compatible with the current API version?