Skip to content

Spectroscopy-Specific Settings

Spectroscopy data may require additional metadata to correctly integrate with the Siemens ICE pipeline.

  • Spectroscopy data that is intended to be stored as DICOM Spectroscopy formatted data must have the Siemens ICE MiniHeader field SpectroData set to true. This can be set in the MetaAttributes, as in spectroscopy.py#L243:

    tmpMeta['SiemensControl_SpectroData'] = ['bool', 'true']
    

  • When sending back DICOM spectroscopy data, ensure that the MRD ImageHeader image_type is set to MRD_IMTYPE_COMPLEX (5) in order to correct downstream header fields:

    tmpImg.image_type = ismrmrd.IMTYPE_COMPLEX
    

  • In Siemens convention, unprocessed FIDs are stored as raw AcquisitionData while processed (coil combined, averaged, etc.) FIDs are stored as ImageData. In the ImageData format, a single readout would use the x dimension for the readout time dimension while y and z dimensions are 1. 2D spectroscopy imaging data is supported where x is time, y is the lines (LIN) dimension and z is the segments (SEG) dimension.

  • The spectral width for the acquisition is often necessary for analysis. Depending on how the data is converted to MRD format, it may be in one of two formats:

  • In the MRD header as a userParameters.userDouble with name SpectralWidth. dicom2mrd.py#L187-L193 will populate this field from the DICOM using the (0018,9052) SpectralWidth DICOM field. This is the spectral width of the complete FID readout in Hz.
  • In the MRD header as a userParameters.userDouble with name DwellTime_0. This is the dwell time for a single oversampled readout point in microseconds.

    The spectral width is used in the LCModel-MRD-App in lcmodel.py#L252-L255:

    try:
        deltaT = 1/mrdhelper.get_userParameterDouble_value(mrdHeader, 'SpectralWidth')
    except:
        deltaT = mrdhelper.get_userParameterDouble_value(mrdHeader, 'DwellTime_0') * 2 * 1e-6
    

  • If the module removes 2x readout oversampling, the dwell time must be updated for correct header generation by the Siemens ICE pipeline. This is done by populating the MiniHeader field RealDwellTime, which is units of nanoseconds, as in spectroscopy.py#L253:

    tmpMeta['SiemensDicom_RealDwellTime'] = ['int', str(int(dwellTime*1000*2))]