-
Notifications
You must be signed in to change notification settings - Fork 7
Add option to override all filters with a global setting #31
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
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.
Pull request overview
This PR adds functionality to completely override observation filters with global settings for specified observation types. This enables centralized control over quality control flags and other filter configurations across multiple observations.
- Adds
replace_obs_filtersconfiguration option to override filters for specific observations - New logic in the
render()method to selectively replace observation filters based on configuration - Comments out the rdas client configuration in
jcb_clients.yaml
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/jcb/renderer.py | Implements the filter override logic within the render method, adding support for replace_obs_filters configuration to replace all filter types with a global override |
| jcb_clients.yaml | Comments out the rdas client configuration (appears unrelated to the main feature) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
CoryMartin-NOAA
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.
Looks great, and simple enough, thanks @danholdaway
The companion PR to NOAA-EMC/jcb#31 offering an example of how to apply the change to just the GOES-16 ABI YAML. Co-authored-by: danholdaway <[email protected]> Co-authored-by: Cory Martin <[email protected]>
The companion PR to NOAA-EMC/jcb#31 offering an example of how to apply the change to just the GOES-16 ABI YAML. Co-authored-by: danholdaway <[email protected]> Co-authored-by: Cory Martin <[email protected]>
It may be desirable in some cases to have the filters for certain observation types to be completely overwritten with a global setting. For example you could choose to set the QC flags to some predetermined values. This PR add the generic capability to do that.
And example of activating the new option can be seen here: https://github.com/NOAA-EMC/jcb-gdas/compare/feature/override_filters?expand=1