GE P-file header revision 28.002 and "GELoad" function

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?

Thank you in advance.
Best regards,
Salem

Hi Salem,

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?

cc-ing @Helge as well.

Best,
Georg

Hi @Georg,
Thank you so much, I will send you an email.
Best,
Salem

@admin, @Helge, I’ve sent a pull request to the Osprey repo that should solve this issue.

2 Likes

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.

2 Likes

Dear @admin,
Dear @mmikkel,
Thank you sincerely for your precious help, it worked perfectly.

Best regards,
Salem

2 Likes

Hi!

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)

Hi @DianaOC,

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:

case '14.3'

With:

case {'14.3','15','15.001'}

…and see if that works?

Hi @alex,

That worked, awesome! Thanks so much for the useful tip!

Diana.

1 Like