feat: add EIA data preprocessing pipeline for US solar generation#133
Open
mahendra-918 wants to merge 1 commit intoopenclimatefix:mainfrom
Open
feat: add EIA data preprocessing pipeline for US solar generation#133mahendra-918 wants to merge 1 commit intoopenclimatefix:mainfrom
mahendra-918 wants to merge 1 commit intoopenclimatefix:mainfrom
Conversation
Contributor
Author
|
@peterdudfield @siddharth7113 Hi! This PR implements Phase 2 of #103 - preprocessing EIA data for US solar generation. I've addressed all the feedback from PR #127:
Added 21 comprehensive tests (all passing). Would appreciate your review when you have a chance! Let me know if anything needs changes. Thanks! |
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.
Description
Adds preprocessing for US solar data from EIA to work with ocf-data-sampler. This is Phase 2 of #103, building on the data fetching from PR #127.
The script transforms EIA data into the required format (time_utc, location_id dimensions) and estimates capacity from historical generation using the 99th percentile. Supports all major US regions and defaults to US48 to avoid duplicate data.
New files:
Updated:
Fixes #103 (Phase 2)
How Has This Been Tested?
Added 21 tests covering schema transformation, capacity estimation, validation, and the full pipeline. All tests passing (31/31).
Ran manually with:
python -m open_data_pvnet.scripts.preprocess_eia_data
--start-date 2024-01-01
--end-date 2024-01-07
--regions CAISO
--output ./test.zarr
If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?
Checklist: