messlinger / cnfconv

Canberra CNF to ASCII file conversion
17 stars 12 forks source link

cnfconv

Canberra CNF to ASCII file conversion

Canberra CNF files store spectral measurement data recorded with the Genie 2000 radiation spectroscopy software in an undocumented binary format. The cnf2txt converter extracts the spectral data from a cnf file and stores it in a human-readable text format.

Since the conversion is based on reverse-engeneering of only a small set of sample files, it may not work correctly for your CNF files. If you come across a file that does not convert correctly, I would be obliged if you could send me copy.

Files

Installation (Windows)

Copy the files cnf2txt.exe and cnf2txtall.bat to the Windows system path (typically C:\WINDOWS) or to the folder containing the data files.

Installation (Linux)

gcc -o cnf2txt cnf2txt.c
chmod +x cnf2txtall
sudo cp cnf2txt cnf2txtall /usr/local/bin

Usage (command prompt):

Usage (Windows explorer):

Note: Make sure your explorer does not hide the file extensions.