Hello,
I have twix MRS .dat data with Measurements and Averages that cause an error when loading data in Osprey.
MRSCont.raw{1,1}.fids has 3 dimension, Npts, Navg, Nmeas
I temporary solved this by reshaping MRSCont.raw.fids/.specs to the expected 2 dimensional array with the 2nd dimension = Navg*Nmeas
plus re-setting MRSCont.raw{1, 1}.averages and MRSCont.raw{1, 1}.rawAverages
before resaving MRSCont.
In this way I can Load data ok,
but then it still fails on Preprocessing as raw.dims.extras is greater than 0 (3 in my case) (see error below)
Would you be able to fix the loading of the data and combine measurements and averages, so all flags (such as ‘extras’) are set correctly?
Happy to share a sample dataset,
Enrico
Error using op_phaseCrCho (line 37)
ERROR: Can not operate on data with extras dimension! ABORTING!!
Error in op_measureDrift (line 46)
[in,~] = op_phaseCrCho(in, 1);
Error in op_robustSpecReg (line 63)
driftPre = op_measureDrift(in);
Error in osp_processUnEdited (line 104)
[raw, fs, phs, weights, driftPre, driftPost] = op_robustSpecReg(raw,
‘unedited’, 0,refShift_ind_ini); % Align and average
Error in OspreyProcess (line 42)
[MRSCont] = osp_processUnEdited(MRSCont);
Error in osp_onProc (line 35)
MRSCont = OspreyProcess(MRSCont);
Error while evaluating UIControl Callback.