Skip to main content

Python package to download, unpack and process impulse response datasets.

Project description

PyPI PyPI DOI

irdl: Impulse Response Downloader

Python package to download, unpack and process impulse response datasets in a unified way.

Highlights

  • Returns data in a standardised format either
    • a dictionary of pyfar-objects (default) ('pyfar')
    • a dictionary of NumPy arrays ('numpy')
    • a path to an HDF5-file for partial data access not having to load the entire data into memory ('hdf5')
    • a path to a SOFA-file, the standardised format for spatially oriented acoustic data ('sofa')
    • a path to the unprocessed provider files as downloaded ('raw')
  • Leverages pooch to download impulse response datasets and verifies their integrity with a checksum.
  • Only downloads, extracts and processes what is actually needed.
  • Adds pooch-support for dSpace repositories, such as TU Berlin depositonce.
  • Data storage location can be set by the IRDL_CACHE_DIR environment variable (defaults to the user cache directory).
  • Output can be processed and exported to a custom location via the export_dir argument.

Links

Usage (Python API)

The package can be included in a Python script as simple as:

from irdl import FabianDataset

data = FabianDataset.get(kind='measured', hato=10)
print(data)
{'impulse_response': time domain energy Signal:
(11950, 2) channels with 256 samples @ 44100.0 Hz sampling rate and none FFT normalization
,
 'receiver_coordinates': 2D Coordinates object with 2 points of cshape (2, 1)

Does not contain sampling weights,
 'source_coordinates': 1D Coordinates object with 11950 points of cshape (11950,)

Does not contain sampling weights}

Usage (CLI)

Once installed, the package provides a convenient command line script which can be invoked with irdl.

$ irdl --help
                                                                                                                        
 Usage: irdl [OPTIONS] COMMAND [ARGS]...                                                                                
                                                                                                                        
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                              │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.       │
│ --help                        Show this message and exit.                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ miracle   Download and extract the MIRACLE database from DepositOnce.                                                │
│ sriracha  Download and extract the SRIRACHA database from DepositOnce.                                               │
│ fabian    Download and extract the FABIAN HRTF Database from DepositOnce.                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

irdl-1.0.0b3.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irdl-1.0.0b3-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file irdl-1.0.0b3.tar.gz.

File metadata

  • Download URL: irdl-1.0.0b3.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for irdl-1.0.0b3.tar.gz
Algorithm Hash digest
SHA256 df0db90f887ba4261cda90eecfc03dfdd2713c6af9a9238c366614e3b762fd18
MD5 b6002ca4f94d064d5716e5d16afbc889
BLAKE2b-256 fee0291ad496cd8e59b1a369ff706f07bba08dfd3e7732f51ccc874720442622

See more details on using hashes here.

File details

Details for the file irdl-1.0.0b3-py3-none-any.whl.

File metadata

  • Download URL: irdl-1.0.0b3-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for irdl-1.0.0b3-py3-none-any.whl
Algorithm Hash digest
SHA256 66ff7678e4fb9ea71549d548c8697e6c99b42af8999aa0f2afd37ae8ca9dc894
MD5 69aa79e7678fcff6febd0fb042ac2c36
BLAKE2b-256 6d98b3d511d752f8a05ad1c41ce326d77b21ade9e4f671cc8a0ac2409bfd7540

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page