Paul, that’s great, and looks good. While you’re at it, if you have time and interest please try this one:
Kharchenko-et-al-Clusters-Master-Catalog-2013-for-PixInsight.csv
This catalog is a revised master catalog of all the clusters including the catalogs of Collinder, King, Melotte, Muzzio, Stock, Trumpler and more. Some clusters have been eliminated in their revisions, though, as they decided that some previously identified clusters were asterisms or were actually divided into multiple clusters (e.g., Trumpler 24 in Scorpius was divided into multiple separate clusters).
I read about the catalog and pulled the necessary fields from VizieR and organized, munged the data as necessary for PixInsight and tested it. Here are three examples with clusters I used for testing. The Milky Way shot has a few other annotations enabled but the blue circles are all the clusters from the Kharchenko catalog, which officially uses the designations MWSC or [KPS2013], but I set the catalog to display the clusters’ more familiar common names from the catalog notes.
I have about two dozen catalogs converted and tested for PixInsight and it has taught me several things.
First off, did you know that you can display additional fields in annotations from file-based catalog data? Check out the built-in Messier catalog with AnnotateImage and you can see that the labels drop down has options to display magnitude, diameter, “common name” (which is stored in the Messier.csv) and other things and multiple placement options for the labels. I am planning to make this possible with custom and Vizier-based catalogs, but currently those types do not support this feature.
Another thing I found the hard way more than once is that if you add a Custom catalog layer in AnnotateImage and you forget to browse to the path for its file before clicking “OK,” then all previously configured custom catalogs are removed from your preferences the next time you open the script.
Another thing is that using local catalog files (as PixInsight does for Messier, NGC-IC and NamedStars csv files locally) seems better than hitting VizieR for any common catalog with less than a few thousand items. The network latency to VizieR becomes noticeable and sometimes it hangs completely and PixInsight hangs on VizieR timing out. We could easily store all of Sharpless-2, Lynds LDN and LBN, Barnard and VdB and a couple dozen more well-known and modestly sized catalogs locally and the annotations would run much faster. Currently every one of those catalogs, if enabled, requires a network round trip to France (because Harvard’s VizieR portal has been down for over a year, what’s up with that?). Granted, it only queries for the data relevant to your image (for enabled catalogs), and it caches results locally for future reference, supposedly, but it seems VizieR always get called even I am annotating the same image over and over and nothing has changed.
I think that we could do something like a “deploy” directory that AnnotateImage could check for new catalog files and a json or xml metadata file, run a validation on any new catalog files, and enable users to add/edit/remove custom catalogs with all the same features available to file based catalogs such as Messier.
I think that customizing a turbo version of AnnotateImage is going to be the best way to release and maintain these catalogs and support their usage collaboratively. I think it is high time for PixInsight and Astrobin to have better annotation support out of the box for the southern hemisphere and some newer astronomical catalogs that astrophotographers find and will continue to find useful and interesting.
I need some sleep but I’m looking to release this as PixInsight update repository ASAP, like a day or two or three.
📷 DoubleCluster_in_Perseus-annotated-v2.jpg
📷 RCW-38_Image136_annotated.jpg
📷 MergeMosaic_Preview01_annotated-clusters.jpg
P.S. notes on the MWSC catalog provenance and multiyear project: it has a part III containing 139 newly identified clusters in the northern hemisphere, which I have pulled down but not yet incorporated to that catalog for PixInsight. The current version attached to this message has all 3,006 clusters from part I and part II, covering northern and southern hemispheres.
Author: Kharchenko, N.V., Piskunov, A.E., Schilbach, E., Roser, S. and Scholz, R.D.
Title: Global Survey of Star Clusters in the Milky Way II
VizieR Catalog ID: J/A+A/543/A156
Date: October, 2013
Publisher: Astronomy & Astrophysics, Volume 558, id.A53, 8 pp.
Sources: https://www.aanda.org/articles/aa/pdf/2013/10/aa22302-13.pdf, https://cdsarc.cds.unistra.fr/viz-bin/cat/J/A+A/558/A53, https://doi.org/10.1051/0004-6361/201322302
P.S. currently the annotation layers are mapped to files rather than say a json query or even regex filter. A local file based query /filter system might be nice for consolidating catalog files. But as yet in order to enable flexibility it is helpful to have catalogs isolated at the file layer. So I’m keeping the King contribution along with separate Melotte and Trumpler catalogs for the layering flexibility.