Adapted for calculation of dose of wrist
Came from Zhentians example, now calculates the values for an (assumed) wrist of 10x10x5 cm.
Attenuation coefficients are estimated from NIST tables.
Output all the values for the two cases we show in the talk (46 and 70 kV, both with an exposure time of 100 ms and 50 mA).
Construct relative path of Spectra
So we can also run the script over SSH, when the files might be in another (relative) path
Versions of the files used for SLS Symposium talk
MTF.py

First version of a script to calculate the modulation transfer function, based on the knife-edge-method.