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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kvp": "<kvp>",
"filters": "<filters>",
"distance_m": "<distance_m>",
"mas": "<mas>"
},
"name": "xray_spectrum"
}
}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. |