{"success":true,"data":{"ext":"h4","name":"H4","description":"Hierarchical Data Format version 4 (HDF4) is a scientific data file format originally developed at the National Center for Supercomputing Applications and now maintained by The HDF Group. It is used to store large, complex datasets in fields such as remote sensing, astronomy, atmospheric science, and other research applications that require structured arrays and metadata. HDF4 is a legacy format preceded by HDF5, but it remains supported by many analysis tools and is generally considered safe when opened with current software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"0E 03 13 01","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["h5","hdf","hdf4","he5"],"usage":{"python":"def is_h4(file_path: str) -> bool:\n    \"\"\"Check if file is a valid H4 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 isH4(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x0E, 0x03, 0x13, 0x01]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsH4(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}"}}}