JDF
application/x-jeol-jdf
Magic Bytes
Offset: 0
4A 45 4F 4C 2E 4E 4D 52
The JEOL Data Format (JDF) is a proprietary binary file format developed by JEOL Ltd. specifically for their line of Nuclear Magnetic Resonance (NMR) spectrometers. This format serves as the standard container for recording raw spectroscopic data, acquisition parameters, and processed spectra generated during chemical analysis and molecular structure determination. These files are primarily processed using the JEOL Delta software suite and are considered safe binary data containers with no executable capabilities.
Validation Code
How to validate .jdf files in Python
Python
def is_jdf(file_path: str) -> bool:
"""Check if file is a valid JDF by magic bytes."""
signature = bytes([0x4A, 0x45, 0x4F, 0x4C, 0x2E, 0x4E, 0x4D, 0x52])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .jdf files in Node.js
Node.js
function isJDF(buffer: Buffer): boolean {
const signature = Buffer.from([0x4A, 0x45, 0x4F, 0x4C, 0x2E, 0x4E, 0x4D, 0x52]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsJDF(data []byte) bool {
signature := []byte{0x4A, 0x45, 0x4F, 0x4C, 0x2E, 0x4E, 0x4D, 0x52}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/jdf
curl https://filesignature.org/api/v1/jdf