I have an fid file (for a 2D experiment) that I would like to process in vnmr. I am aware that an fid file requires a certain header to be able to be processed in vnmr. How do I add a header to my fid file, such that I can process the data in vnmr? asked Nov 19 '09 at 17:13 KevinJD |
I'm not sure I understand your question. If the fid is produced by varian software, then it will already have the necessary headers (note the plural) prepended to the data. If data is from another brand of spectrometer, I believe Varian has utilities to convert the data to their format, complete with the necessary headers. If the fid is from another source (say a simulated or synthetic fid) then you will have to pre-pend a file header to the entire file, and a block header to each block of data. These are well described in the Varian user programming manual. If necessary, I can send you class definitions that describe the headers. These are used by SpinWorks to read Varian data but could also be used to write Varian compatible data if you have some programming experience. answered Nov 22 '09 at 14:43 Kirk Marat |
I've written a binary parser for the varian fid files. Below is the output. So my confusion is as follows : Why does my fid meta data appear to be telling me that my fid points are real, as opposed to complex ? Here is the output of my program. As you can see, many of the meta data parameters look reasonable, implying that the parser basically works okay. For example, it is getting reasonable values for the number of points, the data flag, the fid flag, the number of traces, etc.... but all the boolean flags for "complex" vs "real" seem to be off.
answered Jan 18 '10 at 05:50 j Hey J, I think it's better if you post it as a separate question. This is Q&A, unlike in discussion threads answers do not always show in the same order. Cheers. - Evgeny Fadeev (Jan 18 '10 at 11:01) btw, since you now have 21 points you can upvote :). If you find anything interesting - please vote those posts up. Commenting everywhere requires 50 points, but you can always comment your own posts and answers to your questions. - Evgeny Fadeev (Jan 18 '10 at 11:06) Take a look at your binary file with some capable text editor, like vim: http://vimdoc.sourceforge.net/htmldoc/vimfaq.html#36.1 - if those bytes are indeed set correctly then there has to be a bug in your header reader. - Evgeny Fadeev (Jan 18 '10 at 13:37) also there is a linux program "od" that dumps out file content in various formats byte-by-byte - Evgeny Fadeev (6 mins ago) - Evgeny Fadeev (Jan 18 '10 at 13:47) |