Script/Program to check if dataset is complete?

Hello,

Is there a script or program that can tell me is a dataset is complete & loadable? I was running a script and my disk ran out of space. As a result, several partial datasets got created. Since I’m using compressed datasets (BRIK.gz), it’s not easy to just go by file size. I can of course remove all of the files and rerun everything, but it would save me some time if I could check whether the dataset was complete (after all, AFNI does display the warning when I try to open or otherwise process that dataset). I’ve tried 3dinfo -exists, and that reports the dataset exists even if it is not complete.

Thanks,
Rasmus

You could check the $status variable after a 3dBrickStat command. If the status is 0, the dataset can be read properly.