Response Interpolation CLI¶
Commands¶
response-interpolation¶
Collects a set of gamma line responses and outputs an interpolated grid.
Line responses should be contained in a CSV with one source position in each row. There should two columns for x and y position. Response for the line should be stored in n_detectors columns each named “<Line Energy> keV d<Detector Number>”, with energy in keV to one decimal. This is the same energy that should be provided with each file.
Line response can either be provided individually with the –line argument or with CSV files. Each CSV should have one row per line and have columns titled in the header “csv_path” and “energy”.
Usage
response-interpolation [OPTIONS] [FILES]...
Options
- -l, --line <lines>¶
For a gamma line, the path to a CSV of position responses and the line’s energy in keV. May be provided multiple times.
- -o, --output <output>¶
Output path instead of stdout.
- -p, --diagnostics¶
Save diagnostic plots.
- -m, --method <method>¶
Interpolation methods.
- Options:
linear | pca_clean | pca_energy_linear
- --basis <basis>¶
CSV with basis if interpolation needs. Should have 169 rows and one column per basis component.
- -d, --debug¶
Print out all debug information during run.
- -v, --verbose¶
Print extra information during run.
- --version¶
Show the version and exit.
Arguments
- FILES¶
Optional argument(s)
API Reference¶
Command Line Interface to interpolate within a calibration grid.