Beside 3dUndump (which is limited to a single sub-brick at a time), you could also use the 3D ASCII format with the to3d command as specified in FAQ 63 here.
[
afni.nimh.nih.gov]
This requires configuring the files a bit differently though. There is no x,y,z nor i,j,k as required for 3dUndump.