{"success":true,"data":{"ext":"grb","name":"GRIdded Binary or General Regularly-distributed Information in Binary file","description":"GRIdded Binary (GRIB), also known as General Regularly-distributed Information in Binary, is a binary data format defined and maintained by the World Meteorological Organization. It is used to distribute meteorological data such as forecasts, atmospheric model output, and historical weather observations for scientific analysis, forecasting systems, and data exchange. GRIB is a long-standing standard and is generally safe to open, though large files may require specialized software.","mime":["application/x-grib"],"risk_level":"Safe","signatures":[{"hex":"47 52 49 42","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"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["grb1","grb2","grib","grib2"],"usage":{"python":"def is_grb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GRB 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 isGRB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x47, 0x52, 0x49, 0x42]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsGRB(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}"}}}