Repository navigation
Add script to fetch live data from Data Platform for the scorecard - #547
Open
PavanRaghavendraKulkarni wants to merge 2 commits into
Open
PavanRaghavendraKulkarni wants to merge 2 commits into
PavanRaghavendraKulkarni wants to merge 2 commits into
Conversation
…for scorecard Fetches observed generation and forecaster output for a location/time window from the Data Platform gRPC API and writes them out as Zarr stores matching the ocf-data-sampler generation schema and the PVNet scorecard hindcast schema, so generate_scorecard.py can run directly against live data.
PavanRaghavendraKulkarni
force-pushed
the
scorecard-live-data-platform-test
branch
from
September 20, 2026 04:53
90f2782 to
6b1b78c
Compare
These are demo output from running generate_scorecard.py against live data-platform data (uk national, 2026-09-19) for PR reference only. Not meant to stay long-term -- they go against the repo's .gitignore rule for *.png, remove before merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/scorecard/live/fetch_from_data_platform.py, which pulls observed generation and forecaster output for a given location/time window straight from the Data Platform gRPC API and writes them out as Zarr stores in the two formatsgenerate_scorecard.pyalready expects:(init_time_utc, location_id, step, quantile)hindcast schema used by generate_scorecard.pyTest plan
Ran end-to-end against the dev Data Platform (via SSH tunnel to
localhost:50051) for theuknational SOLAR location:pvlive_in_day) and forecasts forpvnet_v2andblend, full day 2026-09-19 (49 timesteps, 16/73 horizons respectively)open_generation()— correct dims/dtypes/coordspython scripts/scorecard/generate_scorecard.pyagainst the fetched data — full report generated, no errorsResulting metrics:
Quantile calibration (fraction of observations below each quantile):
Report screenshots:
t0 availability

NMAE by forecast horizon

NMAE by month

Quantile calibration

Note: these screenshots are committed to this branch only, for PR review — they go against the repo's
.gitignorerule for*.pngand should be removed before merge.