diff --git a/docs/detection.rst b/docs/detection.rst index f69e6c5f9..d36c8ecb9 100644 --- a/docs/detection.rst +++ b/docs/detection.rst @@ -68,21 +68,22 @@ finder: >>> daofind = DAOStarFinder(fwhm=3.0, threshold=5.*std) # doctest: +REMOTE_DATA >>> sources = daofind(data - median) # doctest: +REMOTE_DATA >>> for col in sources.colnames: # doctest: +REMOTE_DATA - ... sources[col].info.format = '%.8g' # for consistent table output - >>> print(sources) # doctest: +REMOTE_DATA - id xcentroid ycentroid sharpness ... sky peak flux mag - --- --------- --------- ---------- ... --- ---- --------- ------------ - 1 144.24757 6.3797904 0.58156257 ... 0 6903 5.6976747 -1.8892441 - 2 208.66907 6.8205805 0.48348966 ... 0 7896 6.7186388 -2.0682032 - 3 216.92614 6.5775933 0.69359525 ... 0 2195 1.6662764 -0.55436758 - 4 351.62519 8.5459013 0.48577834 ... 0 6977 5.8970385 -1.9265849 - 5 377.51991 12.065501 0.52038488 ... 0 1260 1.1178252 -0.12093477 - ... ... ... ... ... ... ... ... ... - 282 267.90091 398.61991 0.27117231 ... 0 9299 5.4379278 -1.8385836 - 283 271.46959 398.91242 0.36738752 ... 0 8028 5.0693475 -1.7623802 - 284 299.05003 398.78469 0.25895667 ... 0 9072 5.5584641 -1.862387 - 285 299.99359 398.76661 0.29412474 ... 0 9253 5.3233471 -1.815462 - 286 360.44533 399.52381 0.37315624 ... 0 8079 6.9203438 -2.1003192 + ... if col not in ('id', 'npix'): + ... sources[col].info.format = '%.2f' # for consistent table output + >>> sources.pprint(max_width=76) # doctest: +REMOTE_DATA, +FLOAT_CMP + id xcentroid ycentroid sharpness roundness1 ... sky peak flux mag + --- --------- --------- --------- ---------- ... ---- ------- ---- ----- + 1 144.25 6.38 0.58 0.20 ... 0.00 6903.00 5.70 -1.89 + 2 208.67 6.82 0.48 -0.13 ... 0.00 7896.00 6.72 -2.07 + 3 216.93 6.58 0.69 -0.71 ... 0.00 2195.00 1.67 -0.55 + 4 351.63 8.55 0.49 -0.34 ... 0.00 6977.00 5.90 -1.93 + 5 377.52 12.07 0.52 0.37 ... 0.00 1260.00 1.12 -0.12 + ... ... ... ... ... ... ... ... ... ... + 282 267.90 398.62 0.27 -0.43 ... 0.00 9299.00 5.44 -1.84 + 283 271.47 398.91 0.37 0.19 ... 0.00 8028.00 5.07 -1.76 + 284 299.05 398.78 0.26 -0.67 ... 0.00 9072.00 5.56 -1.86 + 285 299.99 398.77 0.29 0.36 ... 0.00 9253.00 5.32 -1.82 + 286 360.45 399.52 0.37 -0.19 ... 0.00 8079.00 6.92 -2.10 Length = 286 rows Let's plot the image and mark the location of detected sources: