Welcome to AstroPython

The purpose of this web site is to act as a community knowledge base for performing astronomy research with Python. It provides lists of useful resources, a forum for general discussion, advice, or relevant news items, collecting users' code snippets or scripts, and longer tutorials on specific topics. The topics within these pages are presented in a list view with the ability to sort by date or topic. A traditional "blog" view of the most recently posted topics is visible from the site Home page.


Contributions from the community are strongly encouraged. If you are interested please contact the AstroPython team via the Contribute page. We can either post material on your behalf or give you an astropython.org user account to allow your own postings.


Blog: Sherpa is an open community project

From the Sherpa team:

On April 20, 2015 Sherpa became an Open Source project!  The source code repository is now on GitHub.   The project repository can be 'cloned'  allowing for development of  the new code, new extensions  or bug fixes.  The Sherpa Project welcomes contributions via GitHub.

Sherpa is a modeling and fitting application for Python. It contains a powerful language for combining simple models into complex expressions ...

Posted by aldcroft

Resource: SNCosmo

Description: Supernova Cosmology
Homepage URL: http://sncosmo.readthedocs.org/

SNCosmo is a Python library for high-level supernova cosmology
analysis. It aims to make such analysis both as flexible and
clear as possible. It is built on NumPy, SciPy and AstroPy.

Posted by aldcroft

Resource: WebbPSF

Description: Simulated PSFs for JWST
Homepage URL: https://pythonhosted.org/webbpsf/

WebbPSF is a Python package that computes simulated PSFs for the
JWST instruments, taking into account detector pixel scales,
rotations, filter profiles, and point source spectra. It is not a
full optical model of JWST, but rather a tool for transforming
optical path difference (OPD) maps, created with some other tool,
into the resulting PSFs as observed ...

Posted by aldcroft

Resource: POPPY

Description: Physical Optics Propagation in PYthon
Homepage URL: https://pythonhosted.org/poppy/

POPPY (Physical Optics Propagation in PYthon) simulates physical
optical propagation including diffraction. It implements a
flexible framework for modeling Fraunhofer (far-field)
diffraction and point spread function formation, particularly in
the context of astronomical telescopes. POPPY was developed as
part of a simulation package for JWST, but is more broadly
applicable to many kinds of imaging simulations.

Posted by aldcroft

Resource: ASteCA

Description: Automated Stellar Cluster Analysis
Homepage URL: http://asteca.github.io/

The Automated Stellar Cluster Analysis (ASteCA) package is designed to fully
automatize the usual tests applied on star clusters in order to determine their
characteristics: center, radius, stars' membership probabilities and associated
intrinsic/extrinsic parameters: metallicity, age, reddening, distance, total
mass, binarity fraction, etc.

The accompanying article describing the code can be accessed as http://arxiv.org ...

Posted by aldcroft