Commit a9cd201
committed
fix: annular HFR / FWHM for saturated-core stars on fast optics (algo v29)
v28 fixed the OSC channel selection but "!" still showed for HFR on
every frame in the user's RASA f/2.2 + 300 s + Lextr OSC dataset.
Root cause: saturated-core stars systematically failed both computeHFR
and computeFWHMGaussian, then the dim-star fallback couldn't find
enough in-bounds measurements for the partial-metrics path to be
avoided.
computeHFR: a flat-topped saturated core inflates cumulative flux at
the smallest radii; the half-flux radius comes back below 0.5 px and
trips the >= 0.5 lower bound. Several saturated stars per frame are
enough to drop hfrValues.count below minStars and route the whole
frame to the all-zero partial-metrics sentinel that the UI renders
as "!".
computeFWHMGaussian: saturated peak pixels were admitted by val <
peakValue * 1.1, flattening the linear log(I) vs r² fit. The failure
was masked because the QualityEstimator falls back to STARFWHM
headers when all group entries have them, so the FWHM cell looked
populated even though the calculator returned nil.
Both calculators now take skipSaturatedCore: Bool. When the per-star
peak is within 5000 ADU of shapeSaturationThreshold (the same
"isBright" test the shape calculator uses) the inner 3 px (~9 px²)
are skipped and the measurement runs on the unsaturated wings.
computeFWHMGaussian also tightens its upper inclusion bound from 1.1×
to 0.99× peak so the flat top is rejected even when skipSaturatedCore
is false.
filterStars switches to the relaxed 99.5 % saturation cut (was 98 %),
matching filterStarsForShape, so bright stars with one or two
saturated central pixels are admitted to the measurement set. The
redundant 5×5 / 98 % full-res re-filter at the top of measure() is
removed — filterStars already covers the bin2x-vs-full-res check, and
keeping it would have silently re-excluded the saturated-core stars.
kAlgorithmVersion 28 → 29. ALGORITHM_CHANGELOG entry added. Scoring
suite passes.
Also adds a TODO entry for the unattended NINA → AstroBlink overnight
auto-triage pipeline (manifest JSON drop folder, idempotent rename
ledger, three-level autopilot preset, headless run, Pushover summary
with AIsaac one-line comment).1 parent 0c71b40 commit a9cd201
4 files changed
Lines changed: 200 additions & 32 deletions
File tree
- AstroTriage
- Engine
- Model
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
15 | 83 | | |
16 | 84 | | |
17 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
199 | 192 | | |
200 | 193 | | |
201 | 194 | | |
| |||
233 | 226 | | |
234 | 227 | | |
235 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
236 | 239 | | |
237 | 240 | | |
238 | | - | |
| 241 | + | |
| 242 | + | |
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
245 | 249 | | |
246 | | - | |
| 250 | + | |
| 251 | + | |
247 | 252 | | |
248 | 253 | | |
249 | 254 | | |
| |||
692 | 697 | | |
693 | 698 | | |
694 | 699 | | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
695 | 708 | | |
696 | | - | |
| 709 | + | |
697 | 710 | | |
698 | 711 | | |
699 | 712 | | |
| |||
815 | 828 | | |
816 | 829 | | |
817 | 830 | | |
818 | | - | |
| 831 | + | |
| 832 | + | |
819 | 833 | | |
820 | 834 | | |
821 | 835 | | |
| |||
825 | 839 | | |
826 | 840 | | |
827 | 841 | | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
828 | 848 | | |
829 | 849 | | |
830 | 850 | | |
| |||
833 | 853 | | |
834 | 854 | | |
835 | 855 | | |
836 | | - | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
837 | 859 | | |
838 | 860 | | |
839 | 861 | | |
| |||
882 | 904 | | |
883 | 905 | | |
884 | 906 | | |
885 | | - | |
| 907 | + | |
| 908 | + | |
886 | 909 | | |
887 | 910 | | |
888 | 911 | | |
| |||
900 | 923 | | |
901 | 924 | | |
902 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
903 | 931 | | |
904 | 932 | | |
905 | 933 | | |
906 | 934 | | |
907 | 935 | | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
908 | 942 | | |
909 | 943 | | |
910 | 944 | | |
| |||
917 | 951 | | |
918 | 952 | | |
919 | 953 | | |
| 954 | + | |
920 | 955 | | |
921 | 956 | | |
922 | 957 | | |
923 | 958 | | |
924 | 959 | | |
925 | | - | |
| 960 | + | |
926 | 961 | | |
927 | 962 | | |
928 | 963 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
298 | 363 | | |
299 | 364 | | |
300 | 365 | | |
| |||
0 commit comments