Release 1.1.7: reject moderate thin cloud and confirmed star elongation
All checks were successful
Release AstroFrame / packages (push) Successful in 56s
All checks were successful
Release AstroFrame / packages (push) Successful in 56s
Frames the sky-structure detector already flags become REJECT when strong cloud texture is backed by two independent moderate dimming measurements. Elongation confirmed on the same matched reference stars (lower 3-sigma bound of the change >= 0.10) rejects as a roundness outlier, following Siril's Seestar -filter-round practice. NGC 1432: Review 36 -> 1; every Keep unchanged across the validation corpus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ef7805055c
commit
c0ef081e4d
7 changed files with 49 additions and 16 deletions
|
|
@ -40,6 +40,7 @@ public static class Classification
|
|||
double countZ=Metric("Star count",x=>x.StarCount,true,.10),fluxZ=Metric("Stellar flux",x=>x.Transparency,true,.06),widthZ=Metric("FWHM",x=>x.Fwhm,false,.08),shapeZ=Metric("Ellipticity",x=>x.Ellipticity,false,.15),bgZ=Metric("Background",x=>x.Background,false,.06),noiseZ=Metric("Noise",x=>x.Noise,false,.08);
|
||||
Metric("Background variation",x=>x.BackgroundVariation,false,.20);
|
||||
double Ratio(string key,double value)=>value/Math.Max(f.Baselines.GetValueOrDefault(key),.00001);
|
||||
double Measured(string key)=>f.AdditionalMeasurements.GetValueOrDefault(key);
|
||||
double countRatio=Ratio("Star count",f.StarCount),fluxRatio=Ratio("Stellar flux",f.Transparency),widthRatio=Ratio("FWHM",f.Fwhm);
|
||||
double connected=f.AdditionalMeasurements.GetValueOrDefault("Cloud connected coverage");
|
||||
// A single sky detector must be overwhelming to discard integration on its own.
|
||||
|
|
@ -88,7 +89,15 @@ public static class Classification
|
|||
}
|
||||
if(widthBad)f.Evidence.Add(new("FWHM",f.Fwhm,f.Baselines["FWHM"],widthZ,$"Stellar width {widthRatio:0.00} × clear-frame baseline"));
|
||||
if(shapeBad)f.Evidence.Add(new("Ellipticity",f.Ellipticity,f.Baselines["Ellipticity"],shapeZ,$"Substantial stellar elongation ({f.Ellipticity:0.00} vs {f.Baselines["Ellipticity"]:0.00})"));
|
||||
bool optics=widthBad&&shapeBad&&widthRatio>1.65;
|
||||
// Stacking workflows such as Siril's Seestar script discard roundness outliers rather than
|
||||
// averaging trailed stars into the result. Reject elongation that the same matched reference
|
||||
// stars confirm well beyond their measurement uncertainty; unconfirmed flags stay REVIEW.
|
||||
bool confirmedElongation=shapeBad&&Measured("Matched shape samples")>=50&&Measured("Matched shape reference frames")>=12&&
|
||||
Measured("Matched shape uncertainty")>0&&Measured("Matched shape uncertainty")<=.025&&
|
||||
Measured("Matched shape change")-3*Measured("Matched shape uncertainty")>=.10;
|
||||
if(confirmedElongation)f.Evidence.Add(new("Matched stellar shape",Measured("Matched shape change"),0,Measured("Matched shape change")/Measured("Matched shape uncertainty"),
|
||||
$"The same {Measured("Matched shape samples"):0} reference stars are {Measured("Matched shape change"):0.00} more elongated than in nearby clear frames (±{Measured("Matched shape uncertainty"):0.000}); a roundness outlier that stacking filters discard"));
|
||||
bool optics=widthBad&&shapeBad&&widthRatio>1.65||confirmedElongation;
|
||||
bool catastrophic=f.StarCount<3&&f.Baselines["Star count"]>50;
|
||||
bool cloud=strongStructure||moderateStructure&&(fluxLoss||regionLoss||starLoss)||strongFlux||localCloudLoss;
|
||||
bool lowMatches=f.MatchFraction<.35;
|
||||
|
|
@ -101,10 +110,15 @@ public static class Classification
|
|||
// removed and dims the stars beneath it relative to clear parts of the same exposure.
|
||||
// Requiring both keeps sky-only changes, such as gradients, out of this route. It only
|
||||
// resolves frames other measurements already flag; it never rejects an otherwise clean KEEP.
|
||||
double Measured(string key)=>f.AdditionalMeasurements.GetValueOrDefault(key);
|
||||
bool thinCloud=suspicious&&spatial&&Measured("Cloud texture significance")>=10&&Measured("Cloud texture connected coverage")>=.05&&
|
||||
Measured("Cloud texture differential samples")>=20&&Measured("Cloud texture differential flux ratio")>0&&
|
||||
Measured("Cloud texture differential flux ratio")<=.98&&Measured("Cloud texture differential flux deviation")>=2.5;
|
||||
bool texture=suspicious&&spatial&&Measured("Cloud texture significance")>=10&&Measured("Cloud texture connected coverage")>=.05&&
|
||||
Measured("Cloud texture differential samples")>=20&&Measured("Cloud texture differential flux ratio")>0;
|
||||
// Moderate dimming suffices when the plane-detrended structure detector also flags the frame,
|
||||
// the texture is strong, and the excess-sky apertures independently lose flux against nearby frames.
|
||||
bool thinCloud=texture&&(Measured("Cloud texture differential flux ratio")<=.98&&Measured("Cloud texture differential flux deviation")>=2.5||
|
||||
moderateStructure&&Measured("Cloud texture significance")>=20&&
|
||||
Measured("Cloud texture differential flux ratio")<=.985&&Measured("Cloud texture differential flux deviation")>=1.5&&
|
||||
Measured("Cloud aperture samples")>=20&&Measured("Cloud aperture regions")>=2&&
|
||||
Measured("Cloud aperture flux ratio")>0&&Measured("Cloud aperture flux ratio")<=.93&&Measured("Cloud aperture flux deviation")>=2.5);
|
||||
if(thinCloud)f.Evidence.Add(new("Cloud texture",Measured("Cloud texture differential flux ratio"),1,Measured("Cloud texture differential flux deviation"),
|
||||
$"Thin cloud texture covers {Measured("Cloud texture coverage"):P0} of the aligned overlap (largest connected area {Measured("Cloud texture connected coverage"):P0}, {Measured("Cloud texture significance"):0.0} × clear-frame scatter); stars beneath it are {1-Measured("Cloud texture differential flux ratio"):P1} fainter relative to clear parts of the same exposure ({Measured("Cloud texture differential flux deviation"):0.0} × nearby clear-frame scatter, {Measured("Cloud texture differential samples"):0} apertures)"));
|
||||
cloud|=thinCloud;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue