python

Astropy v0.4 Released

by Guest September 8, 2014

Erik Tollerud is a Hubble Fellow at Yale University, and is a member of the Astropy Coordinating Committee.  His research interests are centered on local dwarf galaxies and near-field cosmology, but he also has a strong interest in the development and sharing of better science software. This July, we performed the third major public release […]

{ 0 comments }

Read more →

Astropy Tutorials: Learn how to do common astro tasks with astropy and Python

by Guest July 7, 2014

This is a guest post by Adrian Price-Whelan (@adrianprw), an NSF graduate fellow at Columbia University. Adrian works on tidal streams and Galactic dynamics, is an open source enthusiast, Python developer, and plays bass for death ray architect. He is also an instructor in the SciCoder workshops and Python workshops at AAS meetings. Astropy is […]

{ 4 comments }

Read more →

Students: Apply to work on Astropy as part of the Google Summer of Code!

by Tom March 3, 2014

As one of the co-ordinators of the Astropy project, I am very happy to announce that Astropy will be participating in the Google Summer of Code (GSoC) 2014 edition! For anyone not familiar with GSoC, it is a program that allows students around the world to spend three months during the summer contributing to an […]

{ 0 comments }

Read more →

Visualization Fun with Python

by Jess K February 10, 2014

The below plot is my favorite data visualization I created for my thesis. It is a 2D density plot with histograms projected along each axis. I based the above plot on code from here, however this plot also includes a 2D temperature/density plot in the middle, and 1/2/3 sigma contour lines.  Below is the code I […]

{ 7 comments }

Read more →

Slim down your bloated graphics

by Jessica Lu January 17, 2014

This post was originally written by Erik Petigura who is a graduate student at UC Berkeley and visitor at the IfA, Hawaii working on exo-planet hunting. The post was modified by Jessica R. Lu to incorporate suggestions from a Facebook Astronomers Group thread on the same topic.  Have you ever encountered a paper or proposal PDF […]

{ 10 comments }

Read more →

Astropy v0.3 Release

by Guest January 15, 2014

This is a guest post by Erik Tollerud, a member of the Astropy Coordination Committee and a Hubble Fellow at Yale University. His research focuses on Local Group dwarf galaxies and their connections to cosmology. In November 2013, we published the second public release (v0.3) of the Astropy package, a core Python package for Astronomy. Astropy is a […]

{ 1 comment }

Read more →

Advanced Design Patterns in Python

by Jessica Lu January 8, 2014

If you have been using python for a few years, I suggest looking over the following tutorial: Advanced Design Patterns in Python The tutorial covers some of the basics of comprehensions, generators, decorators, context managers, descriptors, and meta classes. If you don’t know what any of these things are, the tutorial will at least give […]

{ 0 comments }

Read more →

Plotting to a File in Python

by Jess K September 20, 2013

Have you ever wanted to save a Python/Matplotlib image directly to a file instead of having it displayed in an X11 window? I needed to do this for a project where I used qsub/PBS to submit jobs to a cluster and I wanted to plot some results for each run and save them to a […]

{ 8 comments }

Read more →

Conference highlights from SciPy 2013

by Guest September 4, 2013

This is a guest post by Matthew Turk, an NSF Postdoctoral Fellow at Columbia University. This summer saw the twelfth edition of the annual SciPy conference in Austin, Texas from June 24th to 29th. Python users will recognize the name of the SciPy package, which includes a core scientific toolkit, but the SciPy conference has a […]

{ 1 comment }

Read more →

Python Tip: Re-sampling spectra with pysynphot

by Jessica Lu August 12, 2013

This post was inspired by a question from John Johnson. Have you ever wanted to plot a model spectrum at lower resolution? Or compare a model spectrum with an observed spectrum? Have you ever wanted to shift several observed spectra to a common redshift to stack them up? In all these cases, you would need to resample […]

{ 9 comments }

Read more →