1,956
edits
(An isochromic world population map. Equirectangular projection. '''Black ink represents people.''' Dependencies: * File:population.data-float64-8640x4320 * File:continents-black-on-white.png * File:borders-black-on-white.png Image generator code: <syntaxhighlight> ## All input files are 8640x4320, which will be scaled down to 2160x1080 # load the base layer main.r << data/continents-black-on-white.png main.r @@ width/4 main.r @@ height/4 main.g := ma...) |
(Updated the "preserve sums" syntax (it's '$' now, not '_')) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Summary == | == Summary == | ||
An [[Term:isochromic|isochromic]] world population map | An [[Term:isochromic|isochromic]] world population map. | ||
'''Black ink represents people.''' | '''Black ink represents people.''' | ||
Map projection: Equirectangular (geographic) (with text covering where Antarctica would be). | |||
Dependencies: | Dependencies: | ||
Line 31: | Line 33: | ||
borders << data/borders-black-on-white.png | borders << data/borders-black-on-white.png | ||
borders @@ negative | borders @@ negative | ||
borders @@ | borders @@ $width/4 | ||
borders @@ | borders @@ $height/4 | ||
main.r >= borders | main.r >= borders | ||
main.g >= borders | main.g >= borders | ||
Line 40: | Line 42: | ||
# add the population | # add the population | ||
pop << data/population.data-float64-8640x4320 | pop << data/population.data-float64-8640x4320 | ||
pop @@ | pop @@ $width/4 # the '$' preserves the total population | ||
pop @@ | pop @@ $height/4 # same | ||
pop /= 440000 # max people per pixel | pop /= 440000 # max people per pixel | ||
pop @@ spread | pop @@ spread |