void copy_format_attributes( header *hdr_dest, header *hdr_src )
Use this function if you want an output file to have the same file format (XPRIME/VAPET/ANALYZE) and compression as an input file.
header *hdr1, *hdr2;
hdr1 = new_header();
hdr2 = new_header();
read_volume("inputvolume" ....
.. compute data for output volume
hdr2 = copy_attr(hdr2, hdr1);
write_volume("output", hdr2, data2); // Now the output file gets
// to be same format and
// compression as input file
..
free_header(hdr1);
free_header(hdr2);
1.0 29/10-96 Ulrik Kjems