Generate an interactive gallery of sky survey cutouts from a list of targets

After filtering down some source catalog to a short list of interesting targets, it’s nice to have image cutouts handy, as either a sanity check, or as finder charts. Aladin Lite, hosted by CDS, has a javascript interface that allows you to display image cutouts from some major sky surveys. Here’s a short python script I wrote to generate a gallery of DSS and 2MASS cutouts, with hyperlinks to the full SIMBAD entry. As an input, it takes an ASCII file containing a list of 2MASS catalog IDs.

Here is an example gallery; the python source is below (hosted with gist).