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

Example gallery suggestion: spectrum.average_photon_energy #2194

Closed
RDaxini opened this issue Sep 1, 2024 · 2 comments · Fixed by #2206
Closed

Example gallery suggestion: spectrum.average_photon_energy #2194

RDaxini opened this issue Sep 1, 2024 · 2 comments · Fixed by #2206
Milestone

Comments

@RDaxini
Copy link
Contributor

RDaxini commented Sep 1, 2024

I am wondering what level of interest there is for an example gallery addition demonstrating the use of spectrum.average_photon_energy.

I think an example calculation of the APE of several spectra could help users understand how to interpret the parameter (high values => blue-shifted spectrum, lower values => red-shifted spectrum) as well as guide users on how to use the function of course.

Since we have the spectrum.spctrl2 function to simulate spectra, but the output is not usable directly as an input into spectrum.average_photon_energy, I think some example code linking the two would also be helpful so that users have a guide on how to simulate and characterise spectral distributions all within pvlib-python.

I'd be happy to create this example if the community thinks it'd be useful.

@AdamRJensen
Copy link
Member

That sounds great to me!

@RDaxini
Copy link
Contributor Author

RDaxini commented Sep 4, 2024

I'll start working on this soon then and create a PR once I have something ready 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants