Partial Coherence Simulation
Version 2.1 by sendels on 2019/06/25 14:40
Here you can find a small python script (by MartinB) implementing the partial coherence methode as described in Thomas Pfeifer, Yuhai Jiang, Stefan Düsterer, Robert Moshammer, and Joachim Ullrich, Partial-coherence method to model experimental free-electron laser pulse statistics, Opt. Lett. 35, 3441-3443 (2010); link to the paper
Simulations like this:

can be easily created with the script ( the script can be downloaded in the attachment table below):

Jupyter Notebook