IDL shapelets software:

The code available here is released for academic use only, under the GNU General Public Licence, © 2011 Richard Massey and Alexandre Refregier. The shapelets bundle includes a stand-alone set of core routines to decompose images into shapelets and to manipulate them. The simage bundle also includes routines to generate multicolour simulated astronomical images. Both require IDL v5.4 or above, but the main commands can also be run directly from a shell prompt via simple scripts that are bundled with the files. Some additional, standard routines (e.g. from the ) are appended so that everything works after one download; these routines can be deleted (from the shapelets/library/ directory) if you already have them.

Please acknowledge use of the code in any resulting work, citing Massey & Refregier (2005). We would be interested to collaborate with anyone requiring more advanced applications, and are always excited to hear about any use you've found for shapelets via r.j.massey [at] Thanks!

Download shapelets package:

The shapelets software is now maintained via SVN. On macs and Linux, you can anonymously download the latest development snapshot by typing

Files will download to a new 'shapelets' directory, which can be renamed or moved if you wish. This uses port 3690, which must be open if you are behind a filewall. To commit new changes, you will need an account. Please contact me if you are interested in helping out, but remember our most important policy: to maintain backwards compatibility at all times!

Alternatively, you can directly download my latest version (or that plus example data), which is updated automatically every day from my working directory (but may not include very recent updates submitted by other users).

Older, frozen versions are also available for direct download. These are all .tar.gz bundles. See the installation guide for unpacking instructions.

Download simage package:

The image simulation code is maintained separately and can be obtained by typing

Frozen versions are also available for direct download.


The shapelets code has been built and tested by many, many people. We are particularly grateful to David Bacon and Tzu-Ching Chang for their help developing the formalism and for their contributions to many routines. Thanks to Joel Bergé and Barney Rowe for their continued input, and to Joel for his fantastic manual. Alain Bonissent carefully fixed bugs and optimised some of the core loops. Stephane Paulin-Henriksson has shown remarkable patience by for poring through the many options with which the focus routines can converge.

The simage code has grown from the blood of many victims. Particular thanks go to Molly Peeples, Will High, Dave Johnston, Matt Ferry and Ben Dobke. Well done everyone for spotting the intentional mistakes put in there to check you were paying attention.

Valid HTML 4.01!

Valid CSS!