-
Notifications
You must be signed in to change notification settings - Fork 297
Add save_gdal.py --mask/--zero-mask options
#1349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
π Thanks for opening this pull request! Please check out our contributing guidelines. π |
Reviewer's GuideEnhances the save_gdal CLI by adding options to apply a user-supplied mask file and/or automatically mask zero-valued pixels, integrating the new masking steps into the data preparation workflow before writing output. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @barely-sad-one - I've reviewed your changes and they look great!
Here's what I looked at during the review
- π‘ General issues: 1 issue found
- π’ Testing: all looks good
- π’ Complexity: all looks good
- π’ Documentation: all looks good
Help me be more useful! Please click π or π on each comment and I'll use the feedback to improve your reviews.
save_gdal.py --mask/--zero-mask options
yunjunz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @barely-sad-one for the PR! Looks all good to me.
|
π π π Congrats on merging your first pull request! We here at behaviorbot are proud of you! π π π |
This PR adds support for the
-mand--zero-maskcommand-line arguments to thesave_gdal.pyCLI, allowing users to:-m /path/to/mask: Apply a custom mask file (e.g. maskTempCoh.h5) to exclude invalid pixels.--zero-mask: Automatically mask all zero-valued pixels in the data array.Changes
save_gdal.pyto accept and handleinps.mask_fileandinps.zero_mask.data[mask == 0] = np.nananddata[data == 0] = np.nan.Reminders
-m --maskoption forsave_gdal/qgis.pyΒ #1254Summary by Sourcery
Add support for custom and zero-value masking to the save_gdal.py command-line interface and apply the masking logic prior to output generation
New Features:
-m/--maskargument to save_gdal.py CLI for specifying a custom mask file--zero-maskflag to automatically mask zero-valued pixels before writing outputEnhancements: