Hi Ken,
By not properly aligned, do you mean not properly ordered ?
In any case, you should read the to3d -help output to figure out what options you need to use.
You may also find the documentation found here:
[
afni.nimh.nih.gov]
to be useful to you (in particular Assembling AFNI Datasets with to3d).
cheers,
ziad