Coder Social home page Coder Social logo

globemaker's Introduction

makeGlobe.py

NB: This script is now very old and relies on the Mapnik Python bindings, which are very challenging to build.

makeGlobe.py is a simple Python script that allows you to create a globe.

You can read all about the process at my blog.

Dependencies:

Usage:

Parameters:

  • -h Print out the command usage
  • -p The width of each gore in pixels. Default: 500.
  • -d The width of each gore in degrees (must multiply into 360). Default: 60.
  • -g The width of the outline around each gore in pixels . Default: 4.
  • -o The name of the output file . Default: globe.png.

Command:

python makeGlobe.py -p [GORE_WIDTH_PX] -d [GORE_WIDTH_DEGREES] -g [GORE_OUTLINE_WIDTH] -o [OUT_PATH]

e.g.:

python makeGlobe.py -p 100 -d 40 -g 1 -o example.png

would give you:

globe 9 gores

whereas:

python makeGlobe.py -p 500 -d 120 -g 4 -o example.png

would give you:

globe 3 gores

globemaker's People

Contributors

jonnyhuck avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.