Usage: 

cubefaces <in file name> <out prefix> <out size>

<in file name> = any equirectangular image, required
<out prefix> = prefix for output images, required
<out size> = size of output images, optional, default 600.

PTStitcher creates the files in the order front, right, back, left, 
up and down as <prefix>0000.tif, <prefix>0001.tif... up to 
<prefix>0005.tif

The cubfaces can be assembled again using a similar script. It may be 
easier to use any of the GUIs. Set Lens correction parameters to 0.0 
and HFoV to 90. Yaw/Pitch of the single images must be 0/0, 90/0, 
-180/0, -90/0, 0/90, 0/-90

Have fun

(c) Erik Krause 2004