A collection of astronomy-related python codes
MATURE CODE:
readcol - ASCII column-reading code. Extremely awesome. More powerful than IDL's readcol: has the ability to read a data table with labeled columns as a dict. Note that this guy snagged my code without giving any credit (or updating...) - please don't do that. Or if you do, at least correct the typos!
grep - really simple, greps for things... tries to be similar to | grep on bash cmd line but isn't all that useful. However, "python grep" is the most common google search term to get to my website....
gaussfitter - one and two dimensional Gaussian fitting using the Levenberg-Marquardt algorithm.
SCIENCE TOOLS:
- UCHIIfitter - fits the SED of an ultracompact HII region with a blackbody with an optically thin turnover point
h2fit - fits H2 infrared lines by creating a synthetic spectrum (gaussians)
- kdist - returns Kinematic Distance from Reid 2009 Galactic rotation curve given a velocity. Also includes inverse.
luminosity - SED integrator intended for mid-IR to sub-mm
- pyflagger - flagger for Bolocam Galactic Plane Survey pipeline
- plfit - power-law fitter as described here
SEMI-ABANDONED:
collapse_gaussfit.py collapseplot.py cubes.py subim_gaussfit.py plfit_v1.py - non-class version of plfit
Other people's code that I've modded slightly or are needed as prereqs for other pieces of code here: combineRGB mpfit mad
Abandoned: fitshow.py