{ "metadata": { "name": "", "signature": "sha256:2c7e9c3cf2e6e7f10a1cc2dcc719e6251e650ae43663d2cc3c7f27aa779e0a42" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "The Mollweide projection" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Author: [Eduardo Mart\u00edn Calleja](http://balbuceosastropy.blogspot.com.es/)\n", "\n", "As a continuation of the previous blog [entry](http://balbuceosastropy.blogspot.com.es/2013/09/working-with-astronomical-coordinate.html), which was dedicated to the different celestial coordinate systems , we will address now a way of representing graphically the position of objects on the celestial sphere. When it comes to generate a plane global representation of the celestial sphere, the Mollweide projection is commonly used. In this article we will see how to generate such representations using the Python matplotlib package. The ability to generate such charts is quite useful, but as we shall see, it is somewhat \"tricky\"." ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Imports and references" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%matplotlib inline\n", "from __future__ import division\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import ephem # to make coordinate systems conversions\n", "from IPython.core.display import HTML # To include images as HTML\n", "\n", "# This IPython magic generates a table with version information\n", "#https://github.com/jrjohansson/version_information\n", "%load_ext version_information\n", "%version_information numpy, matplotlib, ephem" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "
Software | Version |
---|---|
Python | 2.7.9 64bit [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] |
IPython | 2.3.1 |
OS | Linux 3.13.0 45 generic x86_64 with debian jessie sid |
numpy | 1.9.1 |
matplotlib | 1.4.2 |
ephem | 3.7.5.3 |
Fri Feb 20 14:19:49 2015 CET |