Tutorial: Practical Python for Astronomers
Practical Python for Astronomers is a series of hands-on workshops to explore the Python language and the powerful analysis tools it provides. The emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research.
The workshops immediately make use of the full suite of plotting, analysis, and file reading tools. Along the way elements of the Python language such as data types ...
Resource: python4astronomers
Description: Practical Python for Astronomers
Homepage URL: http://python4astronomers.github.com/
Practical Python for Astronomers is a series of hands-on workshops to explore the Python language and the powerful analysis tools it provides. The emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research.
The workshops immediately make use of the full suite of plotting, analysis, and file reading tools. Along ...
Blog: [Question] How to measure spectral line equivalent widths
Question from Dan Feldman:
Hi, I'm working on writing or finding a Python script/module that can automate the measuring of equivalent widths for both emission and absorption lines, fitting various line profiles (e.g. Gaussian profiles, Voigt Profiles). How do I go about this?
For instance, Ben Weiner commented on a blog post here http://www.astrobetter.com/spectral-line-analysis-tools/#comment-3349 and I basically want to know ...
Snippet: Save sherpa fit and conf results to a JSON file
After doing a fit with Sherpa you may want to dump all the results to a file for later processing or inspection. The following snippet writes the results from model fitting and confidence estimation to a file using the JSON format for data serialization. This format is widely supported in other programming languages and is also human-readable.
import json from sherpa.astro.ui import get_source, get_fit_results, get_conf_results src ...
Blog: CIAO 4.2 Sherpa version 2 released
The Chandra X-ray Center (CXC) is pleased to announce that a new version of Sherpa for the current CIAO 4.2 ("Chandra Interactive Analysis of Observations") is availalable for download from: http://cxc.harvard.edu/ciao/download/.
Sherpa v2 is available for all the platforms supported by CIAO 4.2 except Mac OS X 10.4 PPC.
The main Sherpa enhancements are related to working with models. There ...