Skip to content

Limit water mask coverage to radar grid extents - #357

Open
gshiroma wants to merge 34 commits into
isce-framework:developfrom
gshiroma:ensure_static_layers_have_consistent_coverage
Open

Limit water mask coverage to radar grid extents#357
gshiroma wants to merge 34 commits into
isce-framework:developfrom
gshiroma:ensure_static_layers_have_consistent_coverage

Conversation

@gshiroma

@gshiroma gshiroma commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR follows #356 and ensures that the water mask layer has consistent coverage with the other static layers, limited to the extents of the radar grid (RadarGridParameters). This is achieved by using the layover/shadow mask as a “reference fill value layer”. The geocoding of this mask assigns the fill value to areas outside the radar grid, which is then used to identify the corresponding fill values in the water mask layer.

gshiroma and others added 30 commits June 30, 2025 15:56
…s_have_consistent_coverage' into ensure_static_layers_have_consistent_coverage

@Tyler-g-hudson Tyler-g-hudson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some nitpicks;

I'm mainly a little confused about the difference between what this PR does and what the name suggests; The PR seems to mask the layover shadow mask onto the watermask, but the title makes claims about using the extents of the RadarGridParameters which don't seem to be used in the code changes.

Comment thread tests/python/packages/nisar/static/water_mask.py Outdated
Comment thread python/packages/nisar/static/water_mask.py Outdated
@Tyler-g-hudson

Copy link
Copy Markdown
Contributor

Please also rebase to develop - Brian just pushed a branch that will get rid of these CI failures

@gshiroma

Copy link
Copy Markdown
Contributor Author

This is achieved by using the layover/shadow mask as a “reference fill value layer”. The geocoding of this mask assigns the fill value to areas outside the radar grid, which is then used to identify the corresponding fill values in the water mask layer.

Thank you, @Tyler-g-hudson , I updated the PR description to make the intent of this PR clearer:

“This is achieved by using the layover/shadow mask as a ‘reference fill value layer.’ The geocoding of this mask assigns the fill value to areas outside the radar grid, which is then used to identify the corresponding fill values in the water mask layer.”

@Tyler-g-hudson

Copy link
Copy Markdown
Contributor

“This is achieved by using the layover/shadow mask as a ‘reference fill value layer.’ The geocoding of this mask assigns the fill value to areas outside the radar grid, which is then used to identify the corresponding fill values in the water mask layer.”

Thanks for this clarification - I think it would help to have a brief comment about this in the code near where the layover/shadow mask is passed into the function to explain why it is there.

gshiroma and others added 3 commits August 24, 2026 17:22
Co-authored-by: Tyler G. Hudson <tyler.g.hudson@gmail.com>
Co-authored-by: Tyler G. Hudson <tyler.g.hudson@gmail.com>
@gshiroma

Copy link
Copy Markdown
Contributor Author

“This is achieved by using the layover/shadow mask as a ‘reference fill value layer.’ The geocoding of this mask assigns the fill value to areas outside the radar grid, which is then used to identify the corresponding fill values in the water mask layer.”

Thanks for this clarification - I think it would help to have a brief comment about this in the code near where the layover/shadow mask is passed into the function to explain why it is there.

Thank you, @Tyler-g-hudson , I added this comment in 79d3a2f.

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