Skip to content

API Errors with phasediff, gaussian, and align in Imperial Valley Subsidence Notebook #12

@m-AA1923

Description

@m-AA1923

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?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions