albeco / LaserPulse

LaserPulse is a class for storing and handling time-frequency pulses, like for example femtosecond laser pulses
https://albeco.github.io/LaserPulse/
BSD 2-Clause "Simplified" License
50 stars 28 forks source link

one question~ #4

Closed jianshuowang closed 1 year ago

jianshuowang commented 2 years ago

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

jianshuowang commented 2 years ago

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

jianshuowang commented 2 years ago

1

albeco commented 2 years ago

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 commented 2 years ago