Hi,
Cool data set!
A couple of ideas for the distortion:
1. You could try increasing the matching distance: say, "solve-field -c 0.02" or 0.03 or whatever, to let the shape-matching be more accepting.
2. You could try taking the WCS from the central region (which solves) and using it as an initial guess for the whole image. The "tweak" process then might be able to find matches in the middle part and "grow" the matching region out to the edges. The only complication doing that is that when you plug the solved WCS back into the whole image, you will need to adjust the "CRPIX" values to compensate for the offset of the subimage. That is, if your central subimage starts at pixel 1000,1000, then you want to add 1000 to CRPIX1 and CRPIX2 in the WCS FITS header before plugging it back into the whole image; you might want to use the "new-wcs" program to plug the WCS header into (a copy of) the original image.
3. More work: You could try to try to figure out the functional form of the distortion and remove it. With a fish-eye lens, the distortion is probably all radial (you would hope!). Try grabbing the largest sub-image that still solves and produces a good-looking "-indx.png" plot (red circles and green circles aligned). In the ".corr" file you have a list of the X,Y,RA,Dec positions of stars in your image, and reference stars, that we think matched. Plot the sqrt((field_x - XC)**2 + (field_y - YC)**2) vs sqrt((index_x - XC)**2 + (index_y - YC)**2), where XC,YC is the image center. That is, plot the radial difference in the image stars and index stars.
The catch is that by default we try to correct the distortion with SIP coefficients, so either turn that off with "solve-field --no-tweak", or try using wcs-rd2xy with the "-t" flag to ignore the SIP terms, to project the RA,Dec coordinates in the .corr file into (distorted) X,Y coordinates, and then make the plot as above.
> However, I cannot find a way to open those FITS BINTABLEs. I just want to extract the coordinate, RA and DEC, as well as the
magnitude from both the image and index files to get a ASCII file, such as .dat or .txt, but I cannot find a way to do that. Would
you please to help me?
Try the "tablist" program, eg "tablist out.rdls"
> Besides, when I tried to use:
wcs-xy2rd -w wcs-file -i xy-list -o radec-list
To convert a list of pixel coordinates to RA,Dec coordinates, it says that:
anwcs.c:957:anwcs_open_wcslib: Wcslib support was not compiled in
anwcs.c:979:anwcs_open_wcstools: WCStools support was not compiled in
wcs-xy2rd.c:57:wcs_xy2rd: Failed to read WCS file "wcs-file", extension 0
wcs-xy2rd-main.c:168:main: wcs-xy2rd failed
You shouldn't need wcstools or wcslib. Probably the "wcs-file" you told it to use doesn't exist. What is the exact command-line you are using to run wcs-xy2rd?
What exactly are you asking us to do with the attached data?
cheers,
--dstn