Hi - have a look at tbss_1_preproc for an example of how to do this
slightly differently, which will work.
Yes, some of the XML fields have different names to that reported in
normal mode by avwhd - so you have to change nx in the XML not dim1.
Steve.
On 4 Jun 2007, at 00:34, Bettyann Chodkowski wrote:
> Hello,
>
> Is there a utility to edit programatically an AVW .hdr file?
>
> I tried to do this like so:
>
> (1) avwhd++ -x <xmlFile>
> (2) sed <xmlFile>
> (3) avwcreatehd++ <xmlFile>
>
> but the .img file is overwritten (zeroed out!) in some cases.
>
> Also some of the AVW header fieldnames as listed by avwhd++ are
> ignored by avwcreatehd++.
> For example, adding 'dim1' to the xmlFile does not change the .hdr
> file but adding 'nx' does. Yet
> 'cal_min' updates the .hdr file just fine.
>
> My sense is that the xmlFile is really more for nifti file formats.
>
> Would avwedithd work some how using vi, ex, or vim and feeding it
> in a series of commands?
>
> Any help would be appreciated.
> Thanks,
> - BettyAnn
------------------------------------------------------------------------
---
Stephen M. Smith, Professor of Biomedical Engineering
Associate Director, Oxford University FMRIB Centre
FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve
------------------------------------------------------------------------
---
|