************************************************** ****************************
This set of commands creates a seamless transparent polar caps layer for the Plate-Carree map
************************************************** ****************************
ice_cap-layer.png
************************************************** ****************************
---create seed ice circle (ice_cap-00.png)
$ convert -size 4000x300 canvas:transparent -stroke white -fill white -draw 'circle 2000,150 2000,40' ice_cap-00.png
---create white undermask
$ convert -size 4000x300 canvas:white cap-white-BG-00.png
---NORTH---
---create rough coastlines from seed circle NORTH
$ convert ice_cap-00.png -alpha extract -virtual-pixel black -spread 100 -blur 0x3 -threshold 50% -spread 1 -blur 0x.7 ice_cap-mask-north.png
---apply NORTH rough mask to white layer
$ convert cap-white-BG-00.png ice_cap-mask-north.png -alpha off -compose Copy_Opacity -composite ice_cap-north.png
---SOUTH---
---create rough coastlines from seed circle SOUTH
$ convert ice_cap-00.png -alpha extract -virtual-pixel black -spread 100 -blur 0x3 -threshold 50% -spread 1 -blur 0x.7 ice_cap-mask-south.png
---apply SOUTH rough mask to white layer
$ convert cap-white-BG-00.png ice_cap-mask-south.png -alpha off -compose Copy_Opacity -composite ice_cap-south.png
--- north ice cap polar to equirectangular (4000 x 300)
$ convert ice_cap-north.png -virtual-pixel Black -distort DePolar 0 ice_cap-north-Q.png
--- south ice cap polar to equirectangular (4000 x 300)
$ convert ice_cap-south.png -virtual-pixel Black -distort DePolar 0 ice_cap-south-Q.png
--- create 4000 x 2000 transparent layer and add icecaps
$ convert -size 4000x2000 canvas:transparent ice_cap-south-Q.png -composite -flip -flop big_cap-1.png
$ convert big_cap-1.png ice_cap-north-Q.png -composite ice_cap-layer.png
$ gimp -- manually embellish this transparent ice_cap-layer.png
--- composite the ice onto the map
$ convert Guildworld_latlon.ppm ice_cap-layer.png -composite Guildworld_latlon-ice.ppm
--- TEST GLOBE WITH POLAR CAPS
$ mproject perspective -lat +23 -long 30 -x 8 -sun -date 168 -time 3.83 -f Guildworld_latlon-ice.ppm | display
************************************************** ****************************