Thanks Dustin, by installing WCSlib I can now generate most of the images. At higher zoom levels however, it seems I need some extra catalogs? For example this call:
plot_wcs_outline(WCS_FILE, SOLVE_FOLDER+'zoom3.png',width=0.36, grid=0.1, zoom=False, hd=True, hd_labels=True, tycho2=True)
fails with the following:
Traceback (most recent call last):
File "./generate_skyplot.py", line 34, in <module>
hd=True, hd_labels=True, tycho2=True)
File "/usr/local/astrometry/lib/python/astrometry/net/views/onthesky.py", line 80, in plot_wcs_outline
kd = tree_open(TYCHO2_KD)
File "/usr/local/astrometry/lib/python/astrometry/libkd/spherematch.py", line 349, in tree_open
return spherematch_c.kdtree_open(fn, treename)
TypeError: must be string, not None
Originally, there was an error about a missing hd.fits that I fixed by downloading the file from
trac.astrometry.net. Now, I suspect this error is because the tycho2 catalog is not there. I looked for the file tycho2.kd once again in
trac.astronomy.net but couldn't find it. Is that file generated by some tools?