We did not get this error with Gannet version 3.1.5.
This is due to this change in 'SiemensDICOMHeader.m' .
if isfield(MRS_struct.p, 'Siemens')
MRS_struct.p.Siemens.deltaFreq = DicomHeader.deltaFreq;
MRS_struct.p.Siemens.editRF.freq = DicomHeader.editRF.freq;
MRS_struct.p.Siemens.editRF.bw = DicomHeader.editRF.bw;
MRS_struct.p.Siemens.editRF.centerFreq = DicomHeader.editRF.centerFreq;
end
if isfield(DicomHeader, 'editRF')
MRS_struct.p.deltaFreq = DicomHeader.deltaFreq;
MRS_struct.p.editRF.freq = DicomHeader.editRF.freq;
MRS_struct.p.editRF.bw = DicomHeader.editRF.bw;
MRS_struct.p.editRF.centerFreq = DicomHeader.editRF.centerFreq;
end
Our Siemens dicom (coming from a 3T Prisma with Syngo VE11C) headers have indeed a field editRF
with fields freq
and bw
but not centerFreq
. In version 3.1.5, since the Field Siemens
was not present, this loop was not used.
%MRS_struct.p.editRF.centerFreq = DicomHeader.editRF.centerFreq;