Some time ago I a had an idea for implementing a plate solving algorithm using Pixinsight. The idea is quite simple: using StarGenerator we generate a reference image with known coordinates. Then with StarAlignment we align the image which we want to solve against the reference image.
For generating the reference image we need to estimate the coordinates of the center of the image. The coordinates don't need to be very precise, but they must be inside the image. Also, for estimating the resolution of the image the user has to set the focal length and pixel size of the camera. Again, this parameters don't need to be very precise, but they should be within a factor of two of the real values. The algorithm iterates using the results of the last step as inputs of the following step.
The initial values can be initialized from the keywords OBJCTRA, OBJCTDEC, FOCALLEN, XPIXSZ, YPIXSZ and DATE_OBS if present in the image.
The result of the algorithm is like this:
Image plate-solve v0.1:
------------------------
Referentiation Matrix (Coords[RA,Dec] = Matrix * Coords[x,y]):
[ -0.0002884164925960009 -0.0000058272042116800396 315.2354073119532
0.0000056731204796174085 -0.0002884526396079686 43.887194882104225
0 0 1]
Resolution X: 1.0385 arcsec/pix
Resolution Y: 1.0386 arcsec/pix
Resolution: 1.0386 arcsec/pix
Rotation: -1.138191 deg
Focal: 1469.67 mm
Image center:
RA: +20 59 46.066
Dec: +43 36 26.229
Image bounds:
TopLeft: RA: +21 00 56.498 Dec: +43 53 13.902
TopRight: RA: +20 58 38.404 Dec: +43 53 54.646
BottomLeft: RA: +21 00 53.729 Dec: +43 18 57.811
BottomRight: RA: +20 58 35.635 Dec: +43 19 38.556
I have been trying to analyze the precision of the results, but I can only compare with astrometry.net. I don't know the precision of astrometry.net, but my script is usually at 1 or 2 arcseconds of it. Also, I have only tried with my images taken with a 8" SCT with resolutions between 0.6" and 1.2" and LRGB and narrowband filters. It would be very helpful if somebody could test the script using images of different resolutions and signal levels and also compare the results with other programs (PinPoint?).
The precision of the algorithm depends on the precision of the PixInsight's star database and of the precision of StarAlignment.
There is still work to do:
- The dialog should let to set the resolution of the image choosing between focal & pixelsize or arcsec/px.
- There should be a checkbox for activating the writing of the WCS keywords in the image (http://fits.gsfc.nasa.gov/fits_wcs.html).
I hope that this script is useful for someone.
Edited for removing an obsolete version of the script. Please, use the last version.