Add NISAR geometry, mask, and tropo match utilities#220
Open
mgovorcin wants to merge 3 commits into
Open
Conversation
- nisar/_geometry.py: prepare_incidence_angle — interpolates radarGrid datacube to DEM surface using multiprocessing, writes incidence angle and LOS unit vector rasters - nisar/_mask.py: get_gslc_mask / get_gunw_mask — extract boolean validity masks from GSLC (subswath mask) and GUNW (water+subswath bitfield) products - tropo/_match.py: apply_tropo_correction / match_and_apply_tropo / read_reference_point — match and subtract tropospheric delay corrections by secondary date - Update nisar/__init__.py and tropo/__init__.py exports - Resolve merge conflict in nisar/_download.py (keep both numpy and requests imports) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
for more information, see https://pre-commit.ci
mirzaees
reviewed
May 29, 2026
| if auth is None: | ||
| msg = "No .netrc entry found for urs.earthdata.nasa.gov" | ||
| raise ValueError(msg) | ||
| username, _, password = auth |
Contributor
There was a problem hiding this comment.
might be good to use the existing function: credentials.get_earthdata_username_password
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.
Reapply NISAR geometry, mask, and tropo match utilities
Re-introduces the utilities removed in #218 (revert of #214). Same code as #214, applied cleanly on top of current
main.What's added
Three modules to support the DISP-NISAR processing chain:
opera_utils.nisar._maskget_gslc_mask,get_gunw_maskopera_utils.nisar._geometryprepare_incidence_angleopera_utils.tropo._matchapply_tropo_correction,match_and_apply_tropo,read_reference_pointAlso exported from
opera_utils.nisarandopera_utils.tropo__init__.py.Basic usage
Validity masks
Incidence angle / LOS unit vectors
Tropospheric correction