Dear all,
I am trying to preporcess GE MRS data with Osprey, and i got the following error:
"
Unrecognized function or variable
‘rdb_hdr_dab_stop_rcv’.
Error in GELoad (line 287)
hdr_value = fread(fid, rdb_hdr_dab_stop_rcv,
‘integer*2’);
Error in io_loadspec_GE (line 30)
[GEout,GEout_w,GEhdr]=GELoad(filename);
Error in osp_LoadP (line 46)
[raw, raw_ref] =
io_loadspec_GE(MRSCont.files{kk},1);
Error in OspreyLoad (line 91)
[MRSCont] = osp_LoadP(MRSCont);
Error in osp_onLoad (line 32)
MRSCont = OspreyLoad(MRSCont);
Error while evaluating UIControl Callback.
"
After chechikng the DV versionof the P-file, i think that the “GELoad” function is not updated with the header revision 28.002.
Could you please help me to fix this?
Yes, that sounds about right. Can you attempt to de-identify an example (phantom, if you have) dataset and send it to us so we can try and get the new header revision to work?
Thanks so much, @mmikkel - that is awesome! Just merged!
@Salem can you try with the latest commit on the develop branch of Osprey? We’ll likely tag a new release soon, but give us feedback first please whether it works for your file.
I’m encountering the same error as Salem when running OspreyLoad with some of my GE files. Following your previous replies, I have downloaded the latest version of osprey-develop (in which GEload.m was updated about 3 weeks ago), but I still get the same error. I’m not sure which header revision my files are, but perhaps this version isn’t supported?
I attached one of the P-files giving this error, in case it’s of any use.
The error message I get:
"Unrecognized function or variable ‘rdb_hdr_dab_stop_rcv’.
Error in GELoad (line 218)
hdr_value = fread(fid, rdb_hdr_dab_stop_rcv, ‘integer*2’);
Error in io_loadspec_GE (line 30)
[GEout,GEout_w,GEhdr]=GELoad(filename);
Error in osp_LoadP (line 48)
[raw, raw_ref] = io_loadspec_GE(MRSCont.files{metab_ll,kk},1);
Error in OspreyLoad (line 228)
[MRSCont] = osp_LoadP(MRSCont);"
Thank you very much in advance!! Best,
Diana. P05632.zip (2.8 MB)
Similar error, but in this case it’s a very old header format (15.001, data from 2010).
It turns out this version was never supported by that reader function – luckily, as far as I can tell the important header fields should be the same as in the 14.3 release.
So, I’d suggest in libraries/FID-A/inputOutput/gannetTools/GELoad.m, around line 69, try replacing: