Hi
fsledithd is a simple script that calls fslhd to extract the header,
then allows you to edit this file in an editor and write the changed
header back using fslcreatehd. If you know what you're doing then I
think the easiest is to replace the middle step by some direct
manipulation (e.g. using sed and awk)
hth
Christian
On 6 Nov 2008, at 18:02, Rajeev Raizada wrote:
> Dear FSL-list,
>
> The command fsledithd looks very useful,
> but it seems to require interactive user-input,
> i.e. it opens up a text editor, I type stuff into the editor
> and then save the new text, then the new Nifti file is written.
>
> Is there a way of editing headers in a batch mode,
> i.e. looping through a bunch of Nifti files
> and applying a particular header-edit to each of them in turn,
> all happening automatically without anybody needing to type
> anything in?
>
> Many thanks,
>
> Raj
_______________________________________________
Christian F. Beckmann, DPhil
Senior Lecturer, Clinical Neuroscience Department
Division of Neuroscience and Mental Health
Imperial College London, Hammersmith Campus
Rm 419, Burlington Danes Bldg, Du Cane Road, London W12 0NN, UK
Tel.: +44 (0)20 7594 6685 --- Fax: +44 (0)20 7594 6548
Email: [log in to unmask]
http://www.imperial.ac.uk/medicine/people/c.beckmann/
Senior Research Fellow, FMRIB Centre
University of Oxford
JR Hospital - Oxford OX3 9DU
Tel.: +44 (0)1865 222551 --- Fax: +44 (0)1865 222717
Email: [log in to unmask]
http://www.fmrib.ox.ac.uk/~beckmann
|