Skip to content

Conversation

@danholdaway
Copy link
Contributor

@danholdaway danholdaway commented Dec 5, 2025

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

Copy link
Contributor

Copilot AI left a 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_filters configuration 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.

Copy link
Contributor

@CoryMartin-NOAA CoryMartin-NOAA left a 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

@danholdaway danholdaway merged commit 62abd6b into develop Dec 5, 2025
6 checks passed
@danholdaway danholdaway deleted the feature/override_filters branch December 5, 2025 15:12
CoryMartin-NOAA added a commit to NOAA-EMC/jcb-gdas that referenced this pull request Jan 2, 2026
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]>
DavidNew-NOAA pushed a commit to NOAA-EMC/GDASApp that referenced this pull request Jan 6, 2026
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]>
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.

3 participants