{ "metadata": { "name": "", "signature": "sha256:4ae85c6955a91ceb2f2b1a4978dc23c53cb3126a70825ee2781c8f1f10bd7132" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ " Working with Astronomical Coordinate Systems" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Author: [Eduardo Mart\u00edn Calleja](http://balbuceosastropy.blogspot.com.es/)\n", "\n", "The purpose of this post is to show how you can work with the various astronomical coordinate systems using appropriate Python libraries.\n", "\n", "Converting between various types of astronomical coordinates will be useful in future posts.This entry, as most of the following, will be fully written with the IPython Notebook" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Imports and references" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%matplotlib inline\n", "from __future__ import division\n", "\n", "# Import of the PyEphem package\n", "import ephem\n", "\n", "from astropy.coordinates import SkyCoord\n", "\n", "#This removes some nasty deprecation warnings that do not interfere with the execution\n", "import warnings\n", "warnings.filterwarnings('ignore')\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 ephem, astropy" ], "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 |
ephem | 3.7.5.3 |
astropy | 0.4.3 |
Fri Feb 20 12:51:19 2015 CET |