17
Python in Astronomy Dr Haley Gomez @astrofairy django weekend Cardiff - 7-9th Feb 2014 thanks to Edward Gomez (@zemogle) and Thomas Robitaille (@astrofrog)

Python in Astronomy

Embed Size (px)

DESCRIPTION

Talk given at Django weekend Cardiff @Djangoweekendcardiff

Citation preview

Page 1: Python in Astronomy

Python in AstronomyDr Haley Gomez

@astrofairy

django weekend Cardiff - 7-9th Feb 2014

thanks to Edward Gomez (@zemogle) and Thomas Robitaille (@astrofrog)

Page 2: Python in Astronomy

astronomy then

© Copyright California Institute of Technology

Page 3: Python in Astronomy

astronomy nowvery hot

gas

cold gas

Page 4: Python in Astronomy

FITS format

• first successful cross-platform way to share astronomical data

• contains metadata which can be read

• long term data storage

how do we store this?

Page 5: Python in Astronomy

the problemBig Data and Rich Data

survey astronomy

Page 6: Python in Astronomy

How do we prepare the astronomy community?

Page 7: Python in Astronomy
Page 8: Python in Astronomy

why python?• open source, cross platform• easy to learn• communicates with Fortran and C++• many different packages• cooperative sharing• blurred lines

reproducability

Page 9: Python in Astronomy
Page 10: Python in Astronomy
Page 11: Python in Astronomy

Thomas Robitaille, Perry Greenfield, Erik Tollerud

.units/.constants

.coordinates

.time

.table/ .ascii

.fits

.wcs

.modelling

.ndata

.convolution

.stats

.cosmologymontage, APLpy,

astroML

Page 12: Python in Astronomy

astropy ‘core’ package:

Only has Numpy as non-optional dependency

Well tested, documented code

Community consensus for inclusion

Cross platform and easy to install

Python 3 compatible

Page 13: Python in Astronomy

e.g. astropy.units

Page 14: Python in Astronomy

e.g. combine images of an object

Page 15: Python in Astronomy

e.g. bringing things together

Page 16: Python in Astronomy

machine learningsignal?

Page 17: Python in Astronomy

http://www.astropy.orghttp://aplpy.github.io/

This research made use of Astropy, a community-developed core Python package for Astronomy (Astropy Collaboration, 2013)