Skip to content

closure_phase_bias.py - mask for areas susceptible to closure phase bias#740

Merged
yunjunz merged 15 commits intoinsarlab:mainfrom
yjzhenglamarmota:closurePhase_bias
Mar 10, 2022
Merged

closure_phase_bias.py - mask for areas susceptible to closure phase bias#740
yunjunz merged 15 commits intoinsarlab:mainfrom
yjzhenglamarmota:closurePhase_bias

Conversation

@yjzhenglamarmota
Copy link
Contributor

@yjzhenglamarmota yjzhenglamarmota commented Feb 7, 2022

Description of proposed changes

Create a mask for areas susceptible to closure phase bias.

I added a standalone script - creatmask_cp.py - to enable creation of a mask that identifies areas susceptible to closure phase bias.

Create a mask for areas susceptible to closure phase bias.
@welcome
Copy link

welcome bot commented Feb 7, 2022

💖 Thanks for opening this pull request! Please check out our contributing guidelines. 💖
Keep in mind that all new features should be documented. It helps to write the comments next to the code or below your functions describing all arguments, and return types before writing the code. This will help you think about your code design and usually results in better code.

@yunjunz yunjunz self-requested a review February 7, 2022 22:56
@yjzhenglamarmota yjzhenglamarmota marked this pull request as ready for review February 7, 2022 23:01
@yunjunz yunjunz requested a review from hfattahi February 8, 2022 01:45
Copy link
Collaborator

@hfattahi hfattahi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @yjzhenglamarmota for this interesting PR. This is going to be a very useful addition to mintpy. I have put in some comments mainly to clarify different things. It would be also nice to update the description of the PR with some example figures of the outputs.

@hfattahi hfattahi requested a review from mirzaees February 26, 2022 05:34
yjzhenglamarmota and others added 2 commits February 27, 2022 22:34
Create a mask for areas susceptible to closure phase bias.
+ rename the script to closure_phase_bias.py, so that we could add the bias correction to this same script in the future as well. The usage could be similar to unwrap_error_phase_closure.py as below:
    - closure_phase_bias.py --action mask
    - closure_phase_bias.py --action correct

+ REFERENCE and EXAMPLE

+ address part of the comments from Heresh.
@yunjunz yunjunz changed the title Create createmask_cp.py closure_phase_bias.py - create a mask for areas susceptible to closure phase bias Feb 28, 2022
@yunjunz yunjunz changed the title closure_phase_bias.py - create a mask for areas susceptible to closure phase bias closure_phase_bias.py - mask for areas susceptible to closure phase bias Feb 28, 2022
Updated the code following Heresh and Yunjun's comments.
Changed code name
Copy link
Collaborator

@hfattahi hfattahi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yjzhenglamarmota for addressing my comments. It looks good to me.

yjzhenglamarmota and others added 5 commits March 3, 2022 12:19
Create a mask for areas susceptible to closure phase bias.
Updated the code following Heresh and Yunjun's comments.
Changed code name
Create a mask for areas susceptible to closure phase bias.
+ rename the script to closure_phase_bias.py, so that we could add the bias correction to this same script in the future as well. The usage could be similar to unwrap_error_phase_closure.py as below:
    - closure_phase_bias.py --action mask
    - closure_phase_bias.py --action correct

+ REFERENCE and EXAMPLE

+ address part of the comments from Heresh.
Addressing Heresh's comment on the input phase threshold.
Changed to number of standard deviations of a Gaussian distribution (assumed distribution for the cumulative closure phase).
Made the help message clearer.
Removed unused imported modules
Copy link
Member

@yunjunz yunjunz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you @yjzhenglamarmota.

Below is my test on Sierra Negra volcano in Galapagos (zenodo):

Screen Shot 2022-03-09 at 8 52 45 PM

@yunjunz yunjunz merged commit bd8795f into insarlab:main Mar 10, 2022
@welcome
Copy link

welcome bot commented Mar 10, 2022

🎉 🎉 🎉 Congrats on merging your first pull request! We here at behaviorbot are proud of you! 🎉 🎉 🎉

@yjzhenglamarmota yjzhenglamarmota deleted the closurePhase_bias branch March 10, 2022 18:10
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.

4 participants