{"success":true,"data":{"ext":"grb2","name":"GRB2","description":"GRIB2 (GRB2) is a standardized binary file format for meteorological and oceanographic data, originally defined by the World Meteorological Organization and maintained through international weather-data standards. It is used to distribute forecast models, observation grids, and other gridded environmental datasets in weather services, research, and numerical prediction systems. The format is generally safe and widely supported, though very large files may require specialized software; it is the newer successor to GRIB1.","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"}]}],"related":["grb","grb1","grib","grib2"],"usage":{"python":"def is_grb2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GRB2 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 isGRB2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x47, 0x52, 0x49, 0x42]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsGRB2(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}"}}}