{"success":true,"data":{"ext":"grib","name":"GRIB","description":"GRIB is a binary file format for gridded meteorological data, created and maintained by the World Meteorological Organization (WMO). It is used to distribute weather model outputs, forecasts, and observational data in applications such as forecasting systems, climate research, and numerical weather prediction. The format is considered low risk; it generally contains data only and has no known security concerns beyond the usual need to validate untrusted files.","mime":[],"risk_level":"Safe","signatures":[{"hex":"47 52 49 42","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["grb","grb1","grb2","grib2"],"usage":{"python":"def is_grib(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GRIB by magic bytes.\"\"\"\n    signature = bytes([0x47, 0x52, 0x49, 0x42])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isGRIB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x47, 0x52, 0x49, 0x42]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsGRIB(data []byte) bool {\n    signature := []byte{0x47, 0x52, 0x49, 0x42}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}