{"success":true,"data":{"ext":"cdf","name":"CDF","description":"Common Data Format (CDF) is a scientific data file format created and maintained by NASA’s Space Physics Data Facility for storing multidimensional data sets. It is used in space science, remote sensing, and other research applications to organize time series, variables, and metadata for analysis and exchange. CDF has a long history in scientific computing, and although it is generally safe, users should still verify files from untrusted sources before opening them.","mime":["application/x-netcdf"],"risk_level":"Safe","signatures":[{"hex":"43 44 46 01","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"}]},{"hex":"43 44 46 02","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":["nc"],"usage":{"python":"def is_cdf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CDF by magic bytes.\"\"\"\n    signature = bytes([0x43, 0x44, 0x46, 0x01])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isCDF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x43, 0x44, 0x46, 0x01]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsCDF(data []byte) bool {\n    signature := []byte{0x43, 0x44, 0x46, 0x01}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}