load_and_concat_responses#
- muse.instrument.utils.load_and_concat_responses(
- response_directory,
- response_files,
- *,
- channels,
- logT=None,
- vdop=None,
- slit=None,
- logT_method='nearest',
- vdop_method='linear',
Load multiple response functions and concatenate them along
line.- Parameters:
response_directory (
str|Path) – Directory containing the response files.response_files (
Sequence[str]) – Filenames of response functions to load, in order.channels (
Sequence[int]) – Channel values to assign; length must equallen(response_files).logT (
DataArray|None) – Temperature axis to (re)sample onto. Passed tomuse.instrument.utils.read_response.vdop (
DataArray|None) – Velocity axis to (re)sample onto. Passed tomuse.instrument.utils.read_response.slit (
DataArray|None) – Number of slits array of integers. Passed tomuse.instrument.utils.read_response.logT_method (
str) – Interpolation method for logT, by default “nearest”. Allowed values are “nearest”, “linear”, “cubic” and “quadratic”. Passed tomuse.instrument.utils.read_response.vdop_method (
str) – Interpolation method for vdop, by default “linear”. Allowed values are “nearest”, “linear”, “cubic” and “quadratic”. Passed tomuse.instrument.utils.read_response.
- Returns:
Concatenated response dataset with assigned channel coordinates.
- Return type:
- Raises:
ValueError – If the length of
channelsdoes not matchresponse_files.