Hi Ole,
Thanks for your email. It would be great to have it available in Debian!
I do not know of any program that use the libastrometry library, and as you saw, the Astrometry.net programs are statically linked.
Indeed, 'fitscopy' and a few other programs come from cfitsio. They are distributed in cfitsio, but not built and installed by default (at least, that was the case in the past; this may have changed?). I agree that these should just be dependencies, and that makes sense for a Debian install.
(That list of programs: tablist modhead fitscopy tabmerge liststruc listhead imcopy imarith imstat)
The main program to be run by users is 'solve-field'. Basically everything else is either run by that, or "convenience" programs that could be useful for some people...
* an-fitstopnm, an-pnmtofits -- PNM <-> FITS image conversion. Netpbm has this, but it was broken in some popular release, resulting in many bug reports, so I use these instead
* astrometry-engine -- this does the actual work of identifying where the list of stars is on the sky -- solve-field runs it. One could imagine a situation where a user want to run this directly, but it wouldn't be common.
* deg2hms.py -- Hours:Minutes:Seconds to decimal degrees. Handy script.
* hmstodeg.py -- convert the other way. Nice inconsistent naming.
* get-healpix -- "HEALPix" projection to RA,Dec; obscurely handy.
* downsample-fits -- scale down a FITS image. Handy.
* fit-wcs -- given a list of x,y coordinates and matching RA,Dec coordinates, fit a transformation and produce a WCS file. Again, useful for some users.
* fits-column-merge, fits-flip-endian, fitsgetext -- Handy utils for working with FITS tables & images.
* merge-columns.py -- redundant with fits-column-merge? Or more flexible?
* fits2fits.py -- "Clean" FITS files. I think this is pretty much broken at the moment, but useful in principle; called by solve-field.
* hpsplit, build-astrometry-index -- used for *building* index files that will later be used by solve-field. Used by some people.
* image2pnm.py -- convert images in various formats to PNM; called by solve-field
* image2xy -- convert FITS image to list of detected stars; possibly useful for some users / workflows.
* new-wcs -- add a WCS header to an image file. Handy util.
* pad-file -- pad a FITS file out to the correct size. Handy-ish util.
* plot-constellations, plotxy, plotquad -- draw annotations on astronomical images, called by solve-field
* plotann.py -- draw annotations on astronomical images, better than plot-constellations, used by some people.
* query-starkd -- search index files for stars near a given point on the sky; handy util.
* removelines.py -- find & remove lines of stars from images; called by solve-field
* tabsort -- sort a FITS table by a given column name; handy util.
* text2fits.py -- convert CSV and other files to FITS tables; handy util.
* uniformize.py -- select a spatially uniform subset of stars; called by solve-filed
* wcs-pv2sip -- convert TPV WCS headers to SIP distortion headers; handy util.
* wcs-rd2xy, wcs-xy2rd -- convert between RA,Dec and x,y positions via WCS headers; handy util.
You are correct that we have no man pages.
The python code is not (yet!) python3 compatible.
You can drop the 'ups' directory; this was for the convenience of a former employer :)
Your proposal for handling the index files seems reasonable; the only concern I would have is that then "out of the box" it only works for a small number of images. If there is some easy way of indicating that the user probably wants to download more index files, that would be nice.
Thanks again for your note and effort here, and apologies for the mess. This is ten years of accumulated research code :) And if we knew what we were doing when we started, it wouldn't be "research"!
cheers,
--dustin