{"success":true,"data":{"ext":"hdf","name":"HDF","description":"Hierarchical Data Format (HDF) is a scientific data format developed by the National Center for Supercomputing Applications and now maintained by The HDF Group. It is used to store and organize large, complex datasets in fields such as earth science, astronomy, engineering, and high-performance computing, and is supported by libraries and tools across multiple platforms. HDF is a legacy format family with multiple versions, and files from older releases may require compatibility software to open or convert them safely.","mime":["application/x-hdf"],"risk_level":"Safe","signatures":[{"hex":"0E 03 13 01","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"89 48 44 46 0D 0A 1A","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["h5","he5","h4","hdf4"],"usage":{"python":"def is_hdf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HDF by magic bytes.\"\"\"\n    signature = bytes([0x0E, 0x03, 0x13, 0x01])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isHDF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x0E, 0x03, 0x13, 0x01]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsHDF(data []byte) bool {\n    signature := []byte{0x0E, 0x03, 0x13, 0x01}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}