For reasons too boring to go into here, the camera I’m developing an obs_package for doesn’t give accurate wcs information in the headers of the raw images (I’m talking tens of degrees out). I wanted, however, to make use of the reference source matching option when characterising the PSF in characterizeImage.py, which requires accurate astrometry. I may have been mistaken, but the only way I could see of doing this was to solve astrometry after ISR but before characterizeImage, so I’ve written my own astrometry task (that uses meas_extensions_astrometryNet) which gets called from processCcd.py between ISR and charImage. I’ve not robustly tested it yet, but it’s working blindly without pointing (RA,Dec), but with a crude plate scale.
If anyone else thinks they may find this useful for their own cameras, or if (in the unlikely event that) someone would like to incorporate my hack into the stack proper, then please reply to this thread (I didn’t want to start forking then pushing without prior warning).
Finally, while working with meas_extensions_astrometryNet, I noticed a couple of things (v15 of the stack running on Debian Linux64):
self.distortionContext was throwing a ‘does not exist’ error, so I had to comment it out and remove bbox from the following line.
Here, it seems that wcs no longer has a
hasDistortion() key, so I had to remove it from the comment. (I searched the whole organisation and couldn’t find any other reference to hasDistortion).