Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/sectoral_preview_plot #309

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Conversation

JohnThomasSEAS
Copy link
Collaborator

@JohnThomasSEAS JohnThomasSEAS commented Jan 28, 2025

  • Adds functionality in the preview to download plot of prior sectoral emissions (bar chart)
  • Downloads sectoral emissions csv for use in Integral Earth plot building

Both new output files are exported into the existing preview output dir as preview_sectoral_emissions.png and prior_sectoral_statistics.csv.

Tested on Permian case.
Screenshot 2025-01-28 at 8 42 11 AM

Copy link
Collaborator

@msulprizio msulprizio left a comment

Choose a reason for hiding this comment

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

I just have one comment. Otherwise looks good!

@@ -449,7 +453,7 @@ def estimate_averaging_kernel(

# use the nudged (prior) emissions for generating averaging kernel estimate
sf = xr.load_dataset(f"{rundir_path}archive_sf/prior_sf_period{kf_index}.nc")
prior_ds = get_mean_emissions(startday, endday, prior_cache)
get_mean_emissions(startday, endday, prior_cache)
Copy link
Collaborator

Choose a reason for hiding this comment

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

did you mean to delete prior_ds = here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I'm not entirely sure why this got changed. Good catch! I'll revert this block to the original and retest my code with a KF config.

@msulprizio msulprizio merged commit aeb605f into dev Jan 29, 2025
@msulprizio msulprizio deleted the feature/sectoral_preview_plot branch January 29, 2025 16:14
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