identify_hdf5#
- gwpy.io.hdf5.identify_hdf5(
- origin: Literal['read', 'write'],
- filepath: FileSystemPath | None = None,
- fileobj: FileLike | None = None,
- *args: object,
- **kwargs: object,
Identify an HDF5 file based on its signature.
- Parameters:
- origin
str Either
'read'or'write', indicating whether the identification is being done for reading or writing.- filepath
str,pathlib.Path, optional The file path to check.
- fileobjfile-like, optional
A file-like object to check.
- args, kwargs
Any additional arguments are passed directly to
astropy.io.misc.hdf5.is_hdf5.
- origin
- Returns:
See also
astropy.io.misc.hdf5.is_hdf5