{"success":true,"data":{"ext":"hdf4","name":"HDF4","description":"HDF4 is a hierarchical data file format developed at the National Center for Supercomputing Applications and now maintained by The HDF Group. It is used to store and organize large scientific datasets, including images, multidimensional arrays, and metadata in fields such as climate research, remote sensing, and astronomy. HDF4 is a legacy format; although generally safe to open, older files may require specialized software support.","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":["h4","h5","hdf","he5"],"usage":{"python":"def is_hdf4(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HDF4 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 isHDF4(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x0E, 0x03, 0x13, 0x01]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsHDF4(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}"}}}