Greg Novak

Postdoctoral Researcher, Paris Observatory

Code

Grasp

A set of python functions to help with interactive object inspection and discovery.

These help one grok, grasp, or get the gist of running code. They're most useful in the context of an interactive IPython session, but can be used in any Python shell. They're also helpful in the debugger. They produce output that can be parsed programmatically if you find that useful.

There are basically three functions provided:

Download from the Project Page on PyPI.

Get the latest source code, submit bugs, etc, on Development page on Launchpad.

Sérsic Deprojections

An implementation of the exact deprojection of Sérsic surface brightness profiles as described in Baes and Gentile, "Analytical expressions for the deprojected Sérsic model," Astronomy and Astrophysics, Volume 525:A136 (2011). The main reason anyone might be interested in using this particular code is that I went to some pain to ensure that the implementation is correct. The test suite is included.

I wrote this for use in the paper: Novak et. al. "On Galaxies and Homology" Monthly Notices of the Royal Astronomical Society, 424:635 (2012).

Download from the Project Page on PyPI.

Get the latest source code, submit bugs, etc, on Development page on Launchpad.

Python Utilities

Like many programmers, I have developed a toolbox of utilities that I like to have close at hand. There are many tidbits in this file. Most are self explanatory, some I think are rather clever.

You can read what I consider to be the highlights and download the module from the Project Page on PyPI.

The latest source code is available on Launchpad.

Numpy Utilities

Various utilities for computing things with information contained in Numpy arrays.

You can read what I consider to be the highlights and download the module from the Project Page on PyPI.

The latest source code is available on Launchpad.

Stellar Structure code in Lisp

Lisp code that solves for pressure, density, and temperature as a function of radius given energy generation via nuclear burning. The code is written in Lush, a dialect of Lisp aimed at numerical problems.

This was written on a dare.