Hello all, here's what I've done so far:
Generated a small batch of my own simulated .PNG images using wcstools and the SAO catalog to feed into the Open Star Tracker test, just the unit_test.sh script.
Each star is a simple circle with a diameter based on the cataloged magnitude so you will get varying brightness on them. No background noise on the image for now.
Looking at the .solved file generated for each of my images, I noticed that it does not get the same answer for image center every time, and it doesn't think the center is exactly where I put it. It seems to be within a couple of degrees so the stars did get ID'd correctly at least.
Is this normal that it's off by that much at this stage? Is there some way to get the actual image center nailed down, and other imager calibrations like distortion? Or is it not necessary to actually do this?
At the end, the scripts returned this:
wcsinfo my_sim_3/calibration_data/257_53_25.wcs | tr [:lower:] [:upper:] | tr " " "=" | grep "=[0-9.-]*$" > my_sim_3/calibration_data/257_53_25.solved
/home/user/.local/lib/python2.7/site-packages/numpy/ma/extras.py:608: RuntimeWarning: invalid value encountered in double_scalars
avg = np.multiply(a, wgt, dtype=result_dtype).sum(axis)/scl
Traceback (most recent call last):
File "calibrate.py", line 137, in <module>
dimmest_match = astrometry_results_all[np.argmax(astrometry_results_all[:,1]),:]
File "/home/user/.local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 1103, in argmax
return _wrapfunc(a, 'argmax', axis=axis, out=out)
File "/home/user/.local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: attempt to get argmax of an empty sequence
Is this because of my test data somehow?