From e41bfca18a6d4ef8e1c9dcac1299bfb95bb4d102 Mon Sep 17 00:00:00 2001 From: jakeross Date: Sun, 28 Jun 2026 21:12:18 -0600 Subject: [PATCH] Scope bernco product statewide to dedupe its source fetch The bernco source is county-scoped by construction (all wells in Bernalillo), so the county_Bernalillo filter was a no-op. Switching the bernco product to state_NM scope (keeping include:[bernco]) yields identical output but lets it share the statewide bernco source asset instead of unifying bernco a second time under its own scope. Removes the singleton Bernalillo cohort: bernco_waterlevels_timeseries now joins the waterlevels_timeseries_state_NM cohort. Source assets 87 -> 86, cohort jobs 5 -> 4. Co-Authored-By: Claude Opus 4.8 --- orchestration/config/products.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/orchestration/config/products.yaml b/orchestration/config/products.yaml index b39d1be..8bb37cd 100644 --- a/orchestration/config/products.yaml +++ b/orchestration/config/products.yaml @@ -23,6 +23,12 @@ products: sources: exclude: [] + # The bernco source (BernCoWaterLevelSource) is county-scoped by construction — + # all its wells are in Bernalillo — so a county filter is a no-op here. Using + # the state_NM scope (with include:[bernco]) yields identical output while + # sharing the statewide bernco source asset, so bernco unifies once instead of + # twice. (A county filter would only matter if the source returned wells + # outside Bernalillo, which it does not.) - id: bernco_waterlevels_timeseries parameter: waterlevels output_type: ogc_timeseries @@ -30,7 +36,7 @@ products: description: "Bernalillo County water level timeseries per well" schedule: "0 8 * * *" spatial_filter: - county: Bernalillo + state: NM sources: include: [bernco]