[Neuroimaging] [Nibabel] save modified nifti header to file

Daniel Münch daniel.muench at research.fchampalimaud.org
Wed Dec 19 08:00:37 EST 2018


Hi,

I am loading a nifti1 file using nib.load(), then modify some header
fields. When I now save using nib.save() the whole image gets loaded to
the memory and saved again (which takes forever).

As I only modified the header is there a way to only write these
modifications to the file?

Thanks,
Daniel

-- 
    Dr. Daniel Münch
    Behavior and Metabolism Lab
    Champalimaud Centre for the Unknown
    Av. Brasília s/n (Doca de Pedrouços)
    1400-038 Lisboa, Portugal

       Mobile: +351 916713862
       Mail:   daniel.muench at research.fchampalimaud.org
       Web:    http://muench.bio
       Web:    http://ribeirolab.org
       PGP:    http://j.mp/PublicKey-Daniel

🔬



More information about the Neuroimaging mailing list