{"success":true,"data":{"ext":"grib2","name":"GRIB2","description":"GRIB2 (GRIdded Binary) is a binary data format for gridded meteorological information, standardized and maintained by the World Meteorological Organization. It is used to distribute weather observations, forecasts, and related atmospheric, oceanographic, and land-surface data in operational forecasting and climate applications. The format is widely supported by meteorological software and is generally considered safe; however, malformed inputs may expose parser vulnerabilities in poorly maintained tools.","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","grib"],"usage":{"python":"def is_grib2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GRIB2 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 isGRIB2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x47, 0x52, 0x49, 0x42]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsGRIB2(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}"}}}