Snippets

This section provides a home for those useful and instructive little bits of code that haven't quite made it into a project for distribution. Here it's important to not be shy and don't worry if it isn't the most perfect code ever.

Title Date Tags
Basic Sherpa SED Fitting 2010-12-20 sherpa vo SEDs
chdir context manager 2009-10-15 context
Easier python logging 2010-02-14
Fast fractals with python and numpy: Mandelbrot sets 2011-01-09
Fast Lomb-Scargle algorithm 2010-09-27 timing spectra
Fix the WCS for a FITS image file 2011-01-13 FITS WCS coordinates astrometry ds9 PyFITS sherpa images
Interpolation without SciPy 2010-11-20 numpy
Parallel map using multiprocessing 2010-03-31 distributed numpy
Save sherpa fit and conf results to a JSON file 2010-07-25 sherpa fitting X-ray
Skipping inconsistent rows in asciitable 2011-11-29 tables
VOEvent parsing snippet 2011-05-27 vo time