equirectangular panorama into 6 cube faces?

Hello,

we need to make equirectangular panoramas into 6 cube faces.
A pointer please?

Thanks.

i assume this is a graphical output/ representation - any other representation makes less sense…?

in other words, the output is a drawing or rendering, as opposed to an ordinary matrix/ array?

Completely outside my area of expertise, but maybe this question on Stackoverflow is relevant (first page suggested by a simple Google search):

http://stackoverflow.com/questions/29678510/convert-21-equirectangular-panorama-to-cube-map