Skip to content

Add Geographic Visualization for Solar Forecasts - #345

Open
Sharkyii wants to merge 5 commits into
openclimatefix:mainfrom
Sharkyii:feat-visualizations
Open

Add Geographic Visualization for Solar Forecasts#345
Sharkyii wants to merge 5 commits into
openclimatefix:mainfrom
Sharkyii:feat-visualizations

Conversation

@Sharkyii

Copy link
Copy Markdown
Contributor

Pull Request

Description

Adds geographic visualization functionality to the evaluation pipeline. Generates elevation maps, PV forecast heatmaps, and overlay visualizations from evaluation results.

Key features:

  • Automatically downloads DEM data from NOAA if not present
  • Calculates geographic bounds from PV site locations
  • Uses inverse distance weighting for smooth heatmap interpolation
  • Creates three outputs: elevation map, PV heatmap, and combined overlay

Files changed:

  • Added quartz_solar_forecast/eval/visualize.py - Visualization functions
  • Modified quartz_solar_forecast/evaluation.py - Integrated into evaluation pipeline

How Has This Been Tested?

Tested with UK region PV sites:

  • Verified DEM file download and extraction
  • Confirmed elevation map generation with proper coastlines
  • Validated PV heatmap interpolation with site markers correctly positioned
  • Tested overlay blending functionality
  • Checked auto-calculated geographic bounds work correctly

Visual verification:

  • Yes - Generated maps show proper geographic alignment, smooth interpolation, and accurate site positioning

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@Sharkyii

Copy link
Copy Markdown
Contributor Author

Fixes : #91

@Sharkyii

Copy link
Copy Markdown
Contributor Author

@peterdudfield could you please review it?

@Sharkyii Sharkyii mentioned this pull request Feb 19, 2026
@Sharkyii

Copy link
Copy Markdown
Contributor Author

@peterdudfield

@peterdudfield

Copy link
Copy Markdown
Contributor

Can you fix lint? (and unit tests?)


# Visualizations
# TODO
visualize_results(results_df, pv_metadata)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a screenshot in the PR of what this does?

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