Subject: binary format
From: yohmatsuki
Date: Jun 11, 2008

Next: 511


Hi all,

I want to output my 2D spectrum on MATLAB into Sparky format. So, I
have read the description on the Sparky binary format in the manual,
but am wondering if it is obsolete because I dont find an expected
number in the place it supposed to be.

For example, with a known spectrum in ucsf format, when I try to read
188th position as a 4-byte integer as follows, I just get nonsense,
-2.1475e+09 and so on.

----------------------------------
fid=fopen(spectrum.ucsf,r);
fseek(fid,188,bof);
nt1=fread(fid,1,int32);
----------------------------------

To read the nuclei type by
----------------------------------
fid=fopen(spectrum.ucsf,r);
fseek(fid,180,bof);
nuc1=fread(fid,6,*char);
----------------------------------
works, giving 15N.

Any sort of comments and suggestions are welcome!!
Thank you very much in advance.

Yoh