IoA Cambridge, Astropy Workshop¶
These notes are for the Astropy workshop held at the Institute of Astronomy of the University of Cambridge by Brigitta Sipőcz and Thomas Robitaille on the 28th of April 2016.
Note
Please bring your laptop to the workshop!
The purpose of this workshop is to give you an overview of functionality in Astropy, and get you started with some simple problems. There is a lot of functionality that we cannot cover in this workshop, so we encourage you to browse the Astropy Documentation to get a sense of what it can be used for!
Installing Python and Astropy¶
If you don’t already have a Scientific Python Installation, install the Anaconda Python Distribution (works for MacOS X, Linux, and Windows). We recommend downloading the Python 3.5 version (you will still be able to set up Python 2 environments if needed). Alternatively you can find installation info here:
Notebooks¶
Download the notebooks from here before starting (Windows users: use this instead).
- Units and Quantities [Problem solutions]
- Tables [Problem solutions]
- Celestial Coordinates [Problem solutions]
- Handling FITS files [Problem solutions]
- Modeling [Problem solutions]
- WCS Transformations [Problem solutions]
- Astropy Affiliated Packages: APLpy and WCSAxes
- Astropy Affiliated Packages: Aperture photometry
- Astropy Affiliated Packages: Astroquery
- Astropy Affiliated Packages: Image reprojection
Getting help¶
General Python help¶
- Google!
- StackOverflow - use tag #python
- Facebook Python users in Astronomy group
Astropy help¶
- astropy mailing list (not just Astropy-related question, any astronomy & python questions)
- StackOverflow - use tag #astropy
- IRC
Useful links¶
- Numpy
- Scipy
- Matplotlib
- Astropy
- More about the Jupyter notebook
- UTF-8 error on MacOS X: see here for how to fix it.