Skip to content

Latest commit

 

History

History
executable file
·
25 lines (16 loc) · 713 Bytes

File metadata and controls

executable file
·
25 lines (16 loc) · 713 Bytes

fourdfpy

This is a (very!) simple package for converting the binary data from Avi Snider's 4dfp neuroimaging file format into a Numpy array, that can then be used in your Python scripts.

Based off of the Julia package written by Michael Myers.

Install

pip install fourdfpy

Running

import fourdfpy

my_4dfp_data = fourdfpy.load("/path/to/myimg")

The path to the 4dfp files should only include the root name without the extension (example: "/path/to/myimg.4dfp.img" should instead be "/path/to/myimg"). Make sure the .4dfp.img and .4dfp.hdr files are in the same directory.

  • TODO: add support for including file extension.