[MINC-users] minc history

Andrew Janke rotor@cmr.uq.edu.au
Wed May 19 23:29:03 2004


On Wed, 19 May 2004, Sylvain MILOT wrote:

> unless someone has written a litter perl script to do this?
>
> use minc_modify_header but you will have to extract the original
> history value, append to it and overwrite it with minc_modify_header

mni_perllib has this functionality in:

   update_history()

Mind, you I often just roll my own each time when doing such things... ie:

   # Get and build history string
   chomp(my($history) = `date`);
   $history .= '>>>> ' . join(' ', $0, @ARGV) . "\n";

   system('minc_modify_header', '-sinsert', ":history='$history'",
          $mnc_file);


--
Andrew Janke  ( rotorATcmr.uq.edu.au || www.cmr.uq.edu.au/~rotor )
Australia->University of Queensland->Centre for Magnetic Resonance
W: +61 7 3232 7254  ||  H: +61 7 3800 4042  ||  M: +61 4 2138 8581