Skip to content

asc_desc2horz_vert: bugfix on custom azimuth and refactor#636

Merged
yunjunz merged 4 commits intoinsarlab:mainfrom
olliestephenson:patch-6
Aug 10, 2021
Merged

asc_desc2horz_vert: bugfix on custom azimuth and refactor#636
yunjunz merged 4 commits intoinsarlab:mainfrom
olliestephenson:patch-6

Conversation

@olliestephenson
Copy link
Contributor

The azimuth variable is supplied as part of the command line input, however it's not actually passed to the get_design_matrix function where its needed, meaning the command line variable does nothing and the azimuth angle defaults to 90 degrees. I've added code to pass it through to the design matrix function, so now the azimuth angle can be modified via the command line.

The azimuth variable is supplied as part of the command line input, however it's not actually passed to the `get_design_matrix` function where its needed, meaning the command line variable does nothing and the azimuth angle defaults to 90 degrees. I've added code to pass it through to the design matrix function, so now the azimuth angle can be modified via the command line.
@yunjunz
Copy link
Member

yunjunz commented Aug 10, 2021

The bug was introduced in #230. Thank you @olliestephenson for finding it out and fixing it!

@yunjunz yunjunz self-requested a review August 10, 2021 17:45
+ use `azimuth` for the direction of interest throughout the script
+ use `los_az_angle` for the direction of LOS vector throughout the script, and to replace `head_angle` to be consistent with the rest of mintpy
+ update comments accordingly.
@yunjunz
Copy link
Member

yunjunz commented Aug 10, 2021

I find my notations in the script are not very clear, so I refactor them here. Below is the notebook I used for testing:
https://github.com/insarlab/MintPy-tutorial/blob/main/applications/asc_desc2horz_vert.ipynb

@yunjunz yunjunz changed the title Properly pass the azimuth variable asc_desc2horz_vert: bugfix on azimuth and refactor Aug 10, 2021
@yunjunz
Copy link
Member

yunjunz commented Aug 10, 2021

For anyone who might be interested or concerned, the version before this PR works fine with the default azimuth direction. So I don't expect any impact if you did not specify an azimuth angle in the command line.

@yunjunz yunjunz changed the title asc_desc2horz_vert: bugfix on azimuth and refactor asc_desc2horz_vert: bugfix on custom azimuth and refactor Aug 10, 2021
@yunjunz yunjunz merged commit 83a2fb1 into insarlab:main Aug 10, 2021
@yunjunz
Copy link
Member

yunjunz commented Aug 10, 2021

Hi @olliestephenson, please note that I change the input azimuth angle definition to anti-clockwise as positive, still measured from the north, to be consistent with the rest of the mintpy and isce-2 convention.

@olliestephenson olliestephenson deleted the patch-6 branch August 11, 2021 07:50
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

Successfully merging this pull request may close these issues.

2 participants