Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help]: Removal topography #177

Open
kjz1997 opened this issue Nov 19, 2024 · 3 comments
Open

[Help]: Removal topography #177

kjz1997 opened this issue Nov 19, 2024 · 3 comments

Comments

@kjz1997
Copy link

kjz1997 commented Nov 19, 2024

Hello Doctor, I would like to know if pygmtsar can generate terrain phases and remove them?

@AlexeyPechnikov
Copy link
Owner

If you’re referring to the topography phase, then yes, absolutely! Almost all PyGMTSAR examples include calculations for removing the topography phase.

@kjz1997
Copy link
Author

kjz1997 commented Nov 25, 2024

Is the phase-diff function used to implement this function? if it is. I am confused about the returned results, According to the interference formula, shouldn't it be np.angle (data1 * np. conj (data2)) - topo_phaseIf my understanding is wrong, please forgive me
the returned result:
data1 = data.sel(date=pairs[:,0]).drop_vars('date').rename({'date': 'pair'}) data2 = data.sel(date=pairs[:,1]).drop_vars('date').rename({'date': 'pair'}) out = (data1 * phase_topo * np.exp(-1j * phase_real) * da.conj(data2)).astype(np.complex64).rename('phase')

@AlexeyPechnikov
Copy link
Owner

In PyGMTSAR, we work with complex phases and apply interferogram() (e.g., np.arctan2 or np.angle) at the final stage. You can use Stack.interferogram() on the topographic phase for plotting, or utilize it in the Stack.phasediff() function to remove the topographic phase from your interferograms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants