astroquery
astroquery copied to clipboard
Returned wcs header has 100s of header cards added {astrometry.net}
I'm finding that returned solved WCS headers have hundreds of header keys added. Here is an example of the cards numbers:
No. Name Ver Type Cards Dimensions Format
0 PRIMARY 1 PrimaryHDU 718 (3072, 2047) int16 (rescales to uint16)
1 MASK 1 ImageHDU 8 (3072, 2047) uint8
2 UNCERT 1 ImageHDU 9 (3072, 2047) float64
An example of one of the added keys:
COMMENT /data/INDEXES/index-5200-LITE/index-5206-46.fits
COMMENT Index(353):
COMMENT /data/INDEXES/index-5200-LITE/index-5206-47.fits
COMMENT Field name: job.axy
It seems that this behaviour comes from this line in the monitor_submission
function of the astrometryNet class
wcs = fits.Header.fromstring(wcs_response.text)
Its possible that the response text has both, the useful wcs header information, and some unneeded solve log information that then gets parsed into the header.