Release 1.1.6: reject corroborated thin cloud instead of reviewing it
All checks were successful
Release AstroFrame / packages (push) Successful in 1m17s
All checks were successful
Release AstroFrame / packages (push) Successful in 1m17s
Add a quadratic-detrended, smoothed sky texture measurement scaled by clear reference scatter, and corroborate it with same-exposure differential forced photometry (stars inside vs. outside the texture, normalized by nearby clear frames). Frames already routed to REVIEW become REJECT only when both agree; otherwise-clean KEEPs are never affected. NGC 1432: Review 48 -> 36, Reject 100 -> 112, Keep unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d8923ea85d
commit
ef7805055c
9 changed files with 125 additions and 26 deletions
|
|
@ -16,7 +16,8 @@ static class QualityRegression
|
|||
var opaque=Make(40);opaque.Stars=stars.Take(25).ToList();opaque.StarCount=25;
|
||||
var broad=Make(41);var gradient=Make(42);var uncertain=Make(43);var cohort=Make(44);var trailing=Make(45);
|
||||
var subtleShape=Make(46);var insufficient=Make(47);var noisyFlux=Make(48);
|
||||
frames.AddRange([opaque,broad,gradient,uncertain,cohort,trailing,subtleShape,insufficient,noisyFlux]);
|
||||
var thinFlagged=Make(49);var thinUndimmed=Make(50);var thinClean=Make(51);
|
||||
frames.AddRange([opaque,broad,gradient,uncertain,cohort,trailing,subtleShape,insufficient,noisyFlux,thinFlagged,thinUndimmed,thinClean]);
|
||||
foreach(var f in frames)
|
||||
{
|
||||
Matching.Measure(frames[0],f);f.Transparency=1;f.RegionFlux=Enumerable.Repeat(1.0,12).ToArray();f.RegionMatches=Enumerable.Repeat(8,12).ToArray();
|
||||
|
|
@ -43,7 +44,25 @@ static class QualityRegression
|
|||
trailing.AdditionalMeasurements["Matched shape change"]=.2;trailing.AdditionalMeasurements["Matched shape uncertainty"]=.01;
|
||||
subtleShape.Ellipticity=.3;subtleShape.AdditionalMeasurements["Matched shape samples"]=100;
|
||||
subtleShape.AdditionalMeasurements["Matched shape change"]=.12;subtleShape.AdditionalMeasurements["Matched shape uncertainty"]=.005;
|
||||
void Texture(Frame f,double ratio,double deviation,bool flagged)
|
||||
{
|
||||
f.AdditionalMeasurements["Clear reference member"]=0;
|
||||
f.AdditionalMeasurements["Cloud texture significance"]=20;f.AdditionalMeasurements["Cloud texture coverage"]=.15;
|
||||
f.AdditionalMeasurements["Cloud texture connected coverage"]=.10;f.AdditionalMeasurements["Cloud texture differential samples"]=60;
|
||||
f.AdditionalMeasurements["Cloud texture differential flux ratio"]=ratio;f.AdditionalMeasurements["Cloud texture differential flux deviation"]=deviation;
|
||||
if(!flagged)return;
|
||||
f.Ellipticity=.3;f.AdditionalMeasurements["Matched shape samples"]=100;
|
||||
f.AdditionalMeasurements["Matched shape change"]=.2;f.AdditionalMeasurements["Matched shape uncertainty"]=.01;
|
||||
}
|
||||
Texture(thinFlagged,.96,4,true);Texture(thinUndimmed,1,.3,true);Texture(thinClean,.96,4,false);
|
||||
Classification.Run(frames);
|
||||
check(thinFlagged.Automatic==Verdict.Reject&&thinFlagged.Evidence.Any(e=>e.Metric=="Cloud texture"),"flagged frame with thin cloud texture that dims stars beneath it rejects");
|
||||
check(thinUndimmed.Automatic==Verdict.Review,"thin texture without differential stellar dimming stays REVIEW");
|
||||
check(thinClean.Automatic==Verdict.Keep,"thin cloud texture alone never rejects an otherwise clean KEEP");
|
||||
double[] curved=Enumerable.Range(0,SkyModel.Count).Select(i=>{double x=(i%SkyModel.Columns+.5)/SkyModel.Columns-.5,y=(i/SkyModel.Columns+.5)/SkyModel.Rows-.5;return 1000+40*x-30*y+200*x*x-150*x*y+120*y*y;}).ToArray();
|
||||
check(SkyModel.Detrend(curved,true).All(v=>Math.Abs(v)<.01)&&SkyModel.Detrend(curved).Max(Math.Abs)>5,"quadratic detrending removes smooth sky curvature that a plane leaves behind");
|
||||
double[] spike=new double[SkyModel.Count];spike[10*SkyModel.Columns+10]=9;var smoothed=SkyModel.Smooth(spike);
|
||||
check(Math.Abs(smoothed[10*SkyModel.Columns+10]-1)<1e-9&&Math.Abs(smoothed[11*SkyModel.Columns+11]-1)<1e-9&&smoothed[12*SkyModel.Columns+12]==0,"texture smoothing averages each cell with its 3x3 neighbors");
|
||||
check(opaque.Automatic==Verdict.Reject,"severe cloud with accurate geometry rejects despite missing reference stars");
|
||||
check(broad.Automatic==Verdict.Reject,"broad coherent sky structure with local aperture attenuation rejects");
|
||||
check(gradient.Automatic==Verdict.Review,"uncorroborated sky structure stays REVIEW rather than rejecting a possible gradient");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue