GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Astropy I: core functions
  • The low-level Sherpa API
  • Tabular data

This view

  • Original page
  • New address

GeezerVison is showing python4astronomers.github.io — Astropy I: core functions — Python4Astronomers 2.0 documentation

python4astronomers

Navigation

  • next »
  • « previous |
  • Python4Astronomers 2.0 documentation »
  • Astropy I: core functions

Astropy I: core functions¶

Astropy is a community-developed core Python package for Astronomy (with the term used in the broad sense, from Solar System work to Cosmology). The first public release (v0.2) took place on February 20th 2013, bug-fixes are released a regular intervals.

Installation instructions for the most current version and the full documentation can be found on www.astropy.org.

After this workshop you will be familiar with some parts of Astropy, a second workshop will cover the remaining functionality.

Beginners in Python should be able to follow, but please ensure that you have a functional Python distribution installed prior to the workshop.

Workshop topics

  • Tabular data
  • Handling FITS files
  • WCS Transformations
  • Celestial Coordinates

Before you proceed¶

Please download this this tar file and extract the content, either by clicking on the link or by executing this python code:

from astropy.extern.six.moves.urllib import request
import tarfile
url = 'http://python4astronomers.github.io/_downloads/astropy_examples.tar'
tarfile.open(fileobj=request.urlopen(url), mode='r|').extractall()
cd data
ls

Then start up IPython with the --matplotlib option to enable interactive plotting and then import numpy and matplotlib:

$ ipython --matplotlib

import numpy as np
import matplotlib.pyplot as plt

Acknowledgments¶

This workshop is based heavily on an introduction to Astropy written by Tom Robitaille, which can be found at http://astropy4mpik.readthedocs.org/en/latest/index.html.

Authors:Thomas Robitaille, Moritz Guenther
Copyright:2013 Moritz Guenther
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.