X-ray spectrum and filtration
xray_spectrumCalculate a tungsten tube spectrum, mean energy (fluence-weighted), aluminium and copper half-value layers, air kerma and the fraction of kerma removed by added filters. Uses SpekPy 2.5.4 with 12 degree anode and 2.5 mm Al inherent filtration; interpolates continuum on normalized energy and fixed-energy characteristic lines between stored kVp, applies NIST XCOM filters and solves kerma-weighted HVLs using NIST SRD 126 air mu_en/rho. Narrow beam without scatter, inverse-square distance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kvp | Yes | Tube voltage 40-150 kVp. | |
| mas | Yes | Nonnegative tube loading in mAs. | |
| filters | Yes | ||
| distance_m | Yes | Positive distance from focal spot in metres. |