load_data(data, n_echos=None)[source]

Coerce input data files to required 3D array output.

  • data (list of img_like, list of str, str, or img_like) – A list of echo-wise img objects or paths to files. Single img objects or filenames are allowed as well, to support z-concatenated data.

  • n_echos (int, optional) – Number of echos in provided data array. Only necessary if data is a single, z-concatenated file. Default: None


  • fdata ((S x E x T) numpy.ndarray) – Output data where S is samples, E is echos, and T is time.

  • ref_img (img_like) – Reference image object for saving output files.