if you are referring to remapping a simple cylindrical map to the north and south poles
gimp has had this built in for at least 10 to 15 years
gimp 2.8
filters / distorts/ polar coordinates

as to a grid
there are a few ways
MMPS can do it easily
http://www.users.globalnet.co.uk/~arcus/mmps/
the input image is a all white image ( 2:1)
Code:
project stereographic -grid -lat 90 -f input.ppm -out NorthPole.ppm

Code:
project stereographic -grid -gridcolor 255:255:255 -lat 90 -f 2k.RGBworld.ppm -out p1.ppm