Merged
Conversation
yunjunz
approved these changes
Sep 27, 2021
Member
|
I was aware of the multi-dimension matrix of |
Contributor
Author
|
@yunjunz apologies for the delay, but I can confirm this works now! Looks like right when I was typing this you squashed and merged, so thanks! |
Member
|
Great, thanks for the bug fix and confirmation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
When I attempted to use the
--mask-demoption, here is the error I got:This problem arose because when attempting to mask the dem shade and contours, the code expects the
dem_contourobject to exist at all times, which cannot be the case if the user wishes to suppress the contours or if this condition is meet inview.py:This was check was updated, but then I noticed that dem shade masking still failed:
After printing out the two arrays and referring to the documentation for the
LightSourcemodule of matplotlib, I realized this was because thedem_shadearray is generated as an array with 4 layers. I thus updated the code with this in mind.However after this I noticed that even when I specify the

--mask-demand--zero-maskoption, the masked pixels in the InSAR field are not masked in the dem:I thus introduced a more simplified update such that the

mskarray in memory reflects these nodata values:Reminders