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

one question~ #4

Closed
jianshuowang opened this issue Mar 14, 2022 · 4 comments
Closed

one question~ #4

jianshuowang opened this issue Mar 14, 2022 · 4 comments

Comments

@jianshuowang
Copy link

hello,Why is the envelope of spectralIntensity and spectrum different?I think they're just different on the horizontal axis

@jianshuowang
Copy link
Author

plot(p2.wavelengthArray, real(p2.spectrum));
hold on;
plot(p2.wavelengthArray,real(p2.spectralIntensity));

@jianshuowang
Copy link
Author

1

@albeco
Copy link
Owner

albeco commented Apr 6, 2022

Hi Jianshu,

the reason is that the spectral intensity is meant to be plotted vs frequency, while the spectrum is meant to be plotted vs the wavelength. The normalization therefore is different

spectral_intensity(frequency) == spectrum(lambda) * lambda^2 / c

(see e.g. https://www.rp-photonics.com/spectral_quantities.html)

@jianshuowang
Copy link
Author

  • Thank you very much. ^^

@albeco albeco closed this as completed Oct 14, 2022
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

No branches or pull requests

2 participants