FabianDataset#
- class irdl.FabianDataset#
Bases:
AKTZipBaseDatasetDownload and extract the FABIAN HRTF database from DepositOnce.
- Attributes:
- _category = 'head_related_impulse_responses'#
- _validate_params(**dataset_kwargs) None#
Validate FABIAN-specific parameters.
- Parameters:
- **dataset_kwargs
dict Parameters to validate. Expected keys: kind, hato.
- **dataset_kwargs
- Raises:
ValueErrorIf kind or hato is out of range.
- classmethod get(kind: str = 'measured', hato: int = 0, cache_dir: str | Path | None = None, export_dir: str | Path | None = None, output_format: str = 'pyfar') dict | Path | None#
Download and extract the FABIAN HRTF database from DepositOnce.
DOI: https://doi.org/10.14279/depositonce-5718.5
- Parameters:
- cache_dir
str Cache directory for downloads. Defaults is the OS user cache directory. This default can be overridden by setting IRDL_CACHE_DIR environment variable.
- export_dir
str,optional Directory for final output. If specified, the data will be exported to <export_dir/FABIAN/>. Else, it remains in <cache_dir/output/>.
- output_format
str Output format: ‘pyfar’, ‘numpy’, ‘hdf5’, ‘sofa’, or ‘raw’.
- kind
str,optional Type of HRTF to download. Either ‘measured’ or ‘simulated’. Default is ‘measured’.
- hato
int,optional Head-above-torso-rotation of HRTFs in degrees. One of: 0, 10, 20, 30, 40, 50, 310, 320, 330, 340, 350. Default is 0.
- cache_dir
- Returns: