Hi, I'm attempting to use a FITS image with an embedded WCS solution obtained by ImageSolver, and am finding that the WCS appears to behave rather oddly when applied outside of PixInsight. My image solves perfectly within PixInsight. Here is the WCS for the image (with the FITS header keys shown on the left, and the ImageSolver result shown at the right):
https://www.dropbox.com/s/j5ynukm0qpypkuj/ImageSolver.pngThe results from AnnotateImage look excellent:
https://www.dropbox.com/s/hz5vj1mdjlfpp8p/AnnotateImageExample.pngThe problem occurs when I try to use the exported image outside of PixInsight, in particular with the ds9 image viewer. The celestial coordinates returned by ds9 are way off... importing a stellar catalog (e.g. NOMAD) shows no alignment with reference stars. Curiously, if I solve the same image using TheSkyX then the agreement with catalogs is excellent. However the WCS keywords embedded by PixInsight look very different from those embedded by TheSkyX, with the sign of the CD1_2 and CD2_2 terms in the rotation matrix reversed.
Here is the image in case anybody wants to play with it:
https://www.dropbox.com/s/21zutxh34b3lhn8/ImageSolverVegaExample.fitIt is a roughly 2.5 x 2 degree image of a field around Vega (obtained with a 400mm f/2.8 lens using a CCD camera with 5.4 micron pixels). The image is oriented so that the X-Y axis points roughly in the N-S direction.
Thank you,
Roberto Abraham
P.S. here are the WCS keywords embedded by PixInsight:
EQUINOX = 2000. / Equatorial equinox
CTYPE1 = 'RA---TAN' / Axis1 projection: Gnomonic
CTYPE2 = 'DEC--TAN' / Axis2 projection: Gnomonic
CRPIX1 = 1676.5 / Axis1 reference pixel
CRPIX2 = 1266.5 / Axis2 reference pixel
CRVAL1 = 279.327971188 / Axis1 reference value
CRVAL2 = 38.6798565002 / Axis2 reference value
CD1_1 = 7.92816434949E-06 / Scale matrix (1,1)
CD1_2 = -0.00079221967717 / Scale matrix (1,2)
CD2_1 = -0.000792282626439 / Scale matrix (2,1)
CD2_2 = -7.19229275726E-06 / Scale matrix (2,2)
CDELT1 = -0.000792318699457 / Axis1 scale
CDELT2 = 0.000792255747321 / Axis2 scale
CROTA1 = 90.546739641 / Axis1 rotation angle (deg)
CROTA2 = 90.546739641 / Axis2 rotation angle (deg)
Here are the corresponding keywords embedded by TheSkyX:
EQUINOX = 2000. / epoch of mean equator & equinox
CTYPE1 = 'RA---TAN' / gnomonic projection
CTYPE2 = 'DEC--TAN' / gnomonic projection
CRPIX1 = 1676.08338371305 / pixel i-coordinate at field center
CRPIX2 = 1267.60199073113 / pixel j-coordinate at field center
CRVAL1 = 279.329166666667 / RA at field center
CRVAL2 = 38.6802777777778 / Dec at field center
CD1_1 = 7.56034420304441E-06 / xi rotation-skew-scale matrix element
CD1_2 = 0.000791726504200464 / xj rotation-skew-scale matrix element
CD2_1 = -0.000791551970901808 / yi rotation-skew-scale matrix element
CD2_2 = 7.43568812353928E-06 / yj rotation-skew-scale matrix element
CDELT1 = -0.00079194016179 / Axis1 scale
CDELT2 = 0.000792040101465 / Axis2 scale
CROTA1 = 90.5408644328 / Axis1 rotation angle (deg)
CROTA2 = 90.5408644328 / Axis2 rotation angle (deg)
RADECSYS= 'FK5 ' / type of RA-Dec
MJD-OBS = 0. / epoch of observation (TAI MJD)