Source image is a disk shaped anamorphic one shot 180° image which was presumably computer generated as a projection of a virtual 3d environment on a perfect semi sphere. After making sure it is centered and the file is perfectly square..
Photoshop -> Filters -> Distorsion -> Polar Coordinates - polar to rectangular filter is applied. There is an equivalent in GIMP but it somehow didn't work.
The image was compressed to fit only the northern hemisphere and also stretched to give the source image an 2:1 ratio. It's a cylindrical map of a perfect globe. Save as .ppm
The 12 resulting gores with a green background for an esier cropping. Now the south hemisphere and green background may be deleted and the northern gores assembled.
The 12 resulting gores manually assembled to a Flower Petal pattern (each segment is turned 30°)
The Perl script is an convenient way to get to the desired result. But stitching is still left to be done manually. Aswell we want to have an overlap for the glue. It fails the test because it simply compresses the pixels horizontally instead of warping them.