Having convinced myself I'd fixed this problem 18 months ago, it seems to be causing me headaches again!
I've got a network of cameras pointing at the sky with wide-angle fish-eye lenses. The width of field is around 80 degrees, though I tend to pass
astrometry.net only the central 50 degrees or so, where lens distortions are less bad. I'm using
astrometry.net to work out what direction each camera is pointing in. I'm finding I can get really accurate fixes on the RA and Dec of the centre of the field, but the position angles are all over the place.
The command line I'm using is:
timeout 2m /usr/local/astrometry/bin/solve-field --no-plots --crpix-center --overwrite my_image.png
As an example, the output from two images taken 16 minutes apart is pasted below, and is fairly representative of the results I'm getting. The altitude and azimuth of the camera is consistently computed to around 0.2 degree precision. But the position angles are changing by 15 degrees or more.
Is the problem that even with the --crpix-center option, the position angle is being computed at a point in the frame that isn't the center, and in these wide-field images, that makes a huge difference? Otherwise I'm a bit stumped!
Thanks,
Dominic.
PS - I got in touch with you a while ago to mention that I was working on a public outreach project, using CCTV cameras (and
astrometry.net) to triangulate the 3D trajectories of meteors, satellites, planes, etc. We've had a lot of major delays because the data's been a lot harder to deal with than we were expecting, but we're hoping to go public soon, and you'll certainly get a credit! :-)
Reading input file 1 of 1: "20150927193000_Bury-Allman_frame_BS1_LC0.png_tmp3.png"...
Extracting sources...
simplexy: found 422 sources.
Solving...
Reading file "./20150927193000_Bury-Allman_frame_BS1_LC0.png_tmp3.axy"...
Field 1 did not solve (index index-4119.fits, field objects 1-10).
Field 1 did not solve (index index-4118.fits, field objects 1-10).
Field 1 did not solve (index index-4117.fits, field objects 1-10).
Field 1 did not solve (index index-4116.fits, field objects 1-10).
Field 1 did not solve (index index-4115.fits, field objects 1-10).
Field 1 did not solve (index index-4114.fits, field objects 1-10).
Field 1 did not solve (index index-4119.fits, field objects 11-20).
Field 1 did not solve (index index-4118.fits, field objects 11-20).
Field 1 did not solve (index index-4117.fits, field objects 11-20).
Field 1 did not solve (index index-4116.fits, field objects 11-20).
Field 1 did not solve (index index-4115.fits, field objects 11-20).
Field 1 did not solve (index index-4114.fits, field objects 11-20).
Field 1 did not solve (index index-4119.fits, field objects 21-30).
Field 1 did not solve (index index-4118.fits, field objects 21-30).
Field 1 did not solve (index index-4117.fits, field objects 21-30).
Field 1 did not solve (index index-4116.fits, field objects 21-30).
Field 1 did not solve (index index-4115.fits, field objects 21-30).
Field 1 did not solve (index index-4114.fits, field objects 21-30).
Field 1 did not solve (index index-4119.fits, field objects 31-40).
Field 1 did not solve (index index-4118.fits, field objects 31-40).
Field 1 did not solve (index index-4117.fits, field objects 31-40).
Field 1 did not solve (index index-4116.fits, field objects 31-40).
Field 1 did not solve (index index-4115.fits, field objects 31-40).
Field 1 did not solve (index index-4114.fits, field objects 31-40).
Field 1 did not solve (index index-4119.fits, field objects 41-50).
Field 1 did not solve (index index-4118.fits, field objects 41-50).
log-odds ratio 34.1611 (6.85485e+14), 68 match, 3 conflict, 78 distractors, 182 index.
RA,Dec = (184.433,78.3765), pixel scale 492.548 arcsec/pix.
Hit/miss: Hit/miss: --+++---+++--+++---+++--+--++--+++++-++++--+c+---+-++---++++-++-+---+----+--+---++-c--+++++---++--++
Field 1 did not solve (index index-4117.fits, field objects 41-50).
log-odds ratio -1.38629 (0.25), 0 match, 0 conflict, 1 distractors, 182 index.
RA,Dec = (184.433,78.3765), pixel scale 485.662 arcsec/pix.
log-odds ratio 30.1595 (1.25338e+13), 76 match, 7 conflict, 21 distractors, 339 index.
RA,Dec = (184.639,78.5336), pixel scale 485.53 arcsec/pix.
Hit/miss: Hit/miss: c+c+++++++++-+++++-++++++++++++-+--+++++++++-++++++++-+--+++c-+c+++-+c-+-+++++-++++-c+--c+-++++-++-+
Field 1: solved with index index-4116.fits.
Field 1 solved: writing to file ./20150927193000_Bury-Allman_frame_BS1_LC0.png_tmp3.solved to indicate this.
Field: 20150927193000_Bury-Allman_frame_BS1_LC0.png_tmp3.png
Field center: (RA,Dec) = (184.200786, 78.567304) deg.
Field center: (RA H:M:S, Dec D:M:S) = (12:16:48.189, +78:34:02.295).
Field size: 60.5385 x 42.1925 degrees
Field rotation angle: up is -65.949 degrees E of N
*** Computed orientation of camera: Alt: 46.30 deg. Az: -15.03 deg.
Reading input file 1 of 1: "20150927194600_Bury-Allman_frame_BS1_LC0.png_tmp3.png"...
Extracting sources...
simplexy: found 838 sources.
Solving...
Reading file "./20150927194600_Bury-Allman_frame_BS1_LC0.png_tmp3.axy"...
Field 1 did not solve (index index-4119.fits, field objects 1-10).
Field 1 did not solve (index index-4118.fits, field objects 1-10).
Field 1 did not solve (index index-4117.fits, field objects 1-10).
Field 1 did not solve (index index-4116.fits, field objects 1-10).
Field 1 did not solve (index index-4115.fits, field objects 1-10).
Field 1 did not solve (index index-4114.fits, field objects 1-10).
Field 1 did not solve (index index-4119.fits, field objects 11-20).
Field 1 did not solve (index index-4118.fits, field objects 11-20).
Field 1 did not solve (index index-4117.fits, field objects 11-20).
Field 1 did not solve (index index-4116.fits, field objects 11-20).
Field 1 did not solve (index index-4115.fits, field objects 11-20).
Field 1 did not solve (index index-4114.fits, field objects 11-20).
Field 1 did not solve (index index-4119.fits, field objects 21-30).
Field 1 did not solve (index index-4118.fits, field objects 21-30).
Field 1 did not solve (index index-4117.fits, field objects 21-30).
Field 1 did not solve (index index-4116.fits, field objects 21-30).
Field 1 did not solve (index index-4115.fits, field objects 21-30).
Field 1 did not solve (index index-4114.fits, field objects 21-30).
Field 1 did not solve (index index-4119.fits, field objects 31-40).
Field 1 did not solve (index index-4118.fits, field objects 31-40).
Field 1 did not solve (index index-4117.fits, field objects 31-40).
Field 1 did not solve (index index-4116.fits, field objects 31-40).
Field 1 did not solve (index index-4115.fits, field objects 31-40).
Field 1 did not solve (index index-4114.fits, field objects 31-40).
Field 1 did not solve (index index-4119.fits, field objects 41-50).
Field 1 did not solve (index index-4118.fits, field objects 41-50).
log-odds ratio 24.6405 (5.02637e+10), 38 match, 2 conflict, 29 distractors, 176 index.
RA,Dec = (188.855,78.3976), pixel scale 489.181 arcsec/pix.
Hit/miss: Hit/miss: --++--c++c+++++---+++++----+--++++++++-----++++-+--++-+-++-+---++--++(best)+-----+----++---+------------++
Field 1: solved with index index-4117.fits.
Field 1 solved: writing to file ./20150927194600_Bury-Allman_frame_BS1_LC0.png_tmp3.solved to indicate this.
Field: 20150927194600_Bury-Allman_frame_BS1_LC0.png_tmp3.png
Field center: (RA,Dec) = (188.418474, 78.429439) deg.
Field center: (RA H:M:S, Dec D:M:S) = (12:33:40.434, +78:25:45.981).
Field size: 60.6957 x 42.6632 degrees
Field rotation angle: up is -84.3152 degrees E of N
*** Computed orientation of camera: Alt: 46.25 deg. Az: -15.23 deg.