enrich_header

Contents

enrich_header#

pulserver.proxy.enrich_header()[source]#

Write the table’s encoding spaces and sequence parameters into an MRD header, in place.

For every space, sets reconSpace from the sequence’s matrix and field of view when defined, and encodedSpace from them with the readout of a Cartesian space widened to the samples of its full echo (TableSpace.readout_samples), the field of view along it growing in proportion, so that the ratio of the encoded to the reconstructed field of view is the readout oversampling. encodingLimits are the extremes of the counters of its readouts, with the centre the sequence defines for kspace_encoding_step_1 and _2 and the middle of the range for the others, and trajectory is OTHER or CARTESIAN. Other fields of an existing encoding are kept; missing encodings are appended. Sequence parameters the table holds replace the header’s, and its diffusion table becomes the diffusion_table user parameter string, one x y z b row per volume (pulserver.mrd.diffusion_table()). Each recon parameter of the table becomes a user parameter string of its name.