Skip to content

FPM-1360 - manual flags - #355

Merged
richjam merged 2 commits into
stagingfrom
feature/temp-cosmos-manual-flags
Aug 25, 2026
Merged

FPM-1360 - manual flags#355
richjam merged 2 commits into
stagingfrom
feature/temp-cosmos-manual-flags

Conversation

@richjam

@richjam richjam commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

https://jira.ceh.ac.uk/browse/FPM-1360

Linked to: NERC-CEH/fdri-discovery#612

Overview

Adds a manual_removal quality control method, which flags data points that appear in a hand-maintained list of known bad data points. These are points that have been checked by a person and found to be bad - e.g. sensor maintenance, known faults, site visits - and cannot be caught by a threshold or spike check.

This is a temporary method until a proper manual flagging process exists in the FDRI system.

Main changes

  • qc_methods.py - new ManualRemoval check. Reads the flagging file, then returns a mask for rows falling in any flagged period for that site and variable.
  • qc_pipeline.py - QCPipeline.run now puts network and site_id into every method config
  • __assets__/manual_flagging/<network>/manual_flags.csv - the flagging list, one file per network. ALL means every variable at that site, an empty END_DATETIME runs to the end of the data.

@richjam
richjam merged commit 54ead38 into staging Aug 25, 2026
8 checks passed
@richjam
richjam deleted the feature/temp-cosmos-manual-flags branch August 25, 2026 15:35
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