Release 1.1.1: corroborate cloudy frames with local stellar attenuation
All checks were successful
Release AstroFrame / packages (push) Successful in 1m8s
All checks were successful
Release AstroFrame / packages (push) Successful in 1m8s
This commit is contained in:
parent
a8e7a87b94
commit
65ded0b606
14 changed files with 731 additions and 9 deletions
|
|
@ -48,6 +48,15 @@ public static class Classification
|
|||
bool moderateStructure=spatial&&f.CloudSignificance>=5&&f.CloudCoverage>=.02&&connected>=.01;
|
||||
bool fluxLoss=fluxZ>=4&&fluxRatio<.78,starLoss=countZ>=3&&countRatio<.75;
|
||||
bool strongFlux=fluxZ>=5&&fluxRatio<.60&&starLoss;
|
||||
bool localCloudLoss=spatial&&f.CloudSignificance>=8&&f.CloudCoverage>=.08&&connected>=.035&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Cloud positive coverage")>=.08&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Cloud positive connected coverage")>=.035&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Cloud aperture samples")>=20&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Cloud aperture regions")>=2&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Cloud aperture flux ratio")<.90&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Cloud aperture flux deviation")>=3;
|
||||
if(localCloudLoss)f.Evidence.Add(new("Cloud aperture flux",f.AdditionalMeasurements["Cloud aperture flux ratio"],1,f.AdditionalMeasurements["Cloud aperture flux deviation"],
|
||||
$"Coherent excess sky coincides with stellar flux {f.AdditionalMeasurements["Cloud aperture flux ratio"]:P0} of the same-aperture reference ({f.AdditionalMeasurements["Cloud aperture samples"]:0} apertures); uncertainty {f.AdditionalMeasurements.GetValueOrDefault("Cloud aperture flux uncertainty"):P1}"));
|
||||
bool regionLoss=false;
|
||||
for(int r=0;r<12;r++)
|
||||
{
|
||||
|
|
@ -68,19 +77,32 @@ public static class Classification
|
|||
if(fluxLoss)f.Evidence.Add(new("Stellar flux",f.Transparency,f.Baselines["Stellar flux"],fluxZ,$"Forced stellar flux reduced to {fluxRatio:P0} of nearby clear-frame baseline; lost detections remain in the measurement"));
|
||||
if(starLoss)f.Evidence.Add(new("Star count",f.StarCount,f.Baselines["Star count"],countZ,$"Detected stars reduced to {countRatio:P0} of clear-frame baseline"));
|
||||
bool widthBad=widthZ>4&&widthRatio>1.25,shapeBad=shapeZ>4&&f.Ellipticity>f.Baselines["Ellipticity"]+.15;
|
||||
if(shapeBad&&f.AdditionalMeasurements.GetValueOrDefault("Matched shape samples")>=50&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Matched shape reference frames")>=12&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Matched shape uncertainty")>0&&
|
||||
f.AdditionalMeasurements["Matched shape uncertainty"]<=.025&&
|
||||
f.AdditionalMeasurements.GetValueOrDefault("Matched shape change")+3*f.AdditionalMeasurements["Matched shape uncertainty"]<.10)
|
||||
{
|
||||
shapeBad=false;
|
||||
f.Evidence.Add(new("Matched stellar shape",f.AdditionalMeasurements["Matched shape change"],.10,0,"Matched reference stars do not corroborate the detection-cohort elongation flag"));
|
||||
}
|
||||
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;
|
||||
bool catastrophic=f.StarCount<3&&f.Baselines["Star count"]>50;
|
||||
bool cloud=strongStructure||moderateStructure&&(fluxLoss||regionLoss||starLoss)||strongFlux;
|
||||
bool weak=f.MatchFraction<.35||f.Transparency<=0||f.Fwhm<=0||(spatial&&f.AdditionalMeasurements.GetValueOrDefault("Forced flux samples")<20);
|
||||
bool cloud=strongStructure||moderateStructure&&(fluxLoss||regionLoss||starLoss)||strongFlux||localCloudLoss;
|
||||
bool lowMatches=f.MatchFraction<.35;
|
||||
bool geometryWeak=spatial?f.AdditionalMeasurements.GetValueOrDefault("Alignment verified")<=0:lowMatches;
|
||||
bool weak=geometryWeak||f.Transparency<=0||f.Fwhm<=0||(spatial&&f.AdditionalMeasurements.GetValueOrDefault("Forced flux samples")<20);
|
||||
bool skyNoise=bgZ>5&&noiseZ>4&&Ratio("Background",f.Background)>1.4;
|
||||
if(skyNoise)f.Evidence.Add(new("Sky noise",f.Noise,f.Baselines["Noise"],noiseZ,"Background and sky noise are substantially above the clear-frame baseline"));
|
||||
bool suspicious=moderateStructure||fluxLoss||regionLoss||widthBad||shapeBad||skyNoise||starLoss;
|
||||
bool suspicious=moderateStructure||fluxLoss||regionLoss||widthBad||shapeBad||skyNoise||starLoss||lowMatches;
|
||||
f.Automatic=reliable&&(catastrophic||!weak&&(cloud||optics))?Verdict.Reject:!reliable||weak||suspicious||f.Warning!=""?Verdict.Review:Verdict.Keep;
|
||||
f.Cause=!reliable?"Insufficient reliable session reference":catastrophic?"Severe disappearance of reference stars":weak?"Uncertain alignment / reference photometry":cloud?"Likely cloud / transparency loss":optics?"Likely tracking or focus failure":suspicious?"Quality change needs review":"Consistent with the clean session reference";
|
||||
if(!reliable)f.Evidence.Add(new("Reference",local.Length,12,0,"Automatic rejection disabled: insufficient clear comparison frames, timestamp or aligned overlap"));
|
||||
if(weak)f.Evidence.Add(new("Matching",f.MatchFraction,.35,0,"Uncertain star alignment or reference aperture coverage; inspect manually"));
|
||||
if(weak)f.Evidence.Add(new("Matching",f.MatchFraction,.35,0,"Unverified geometric alignment or insufficient reference photometry; inspect manually"));
|
||||
else if(lowMatches)f.Evidence.Add(new("Alignment",f.AdditionalMeasurements.GetValueOrDefault("Alignment tight matches"),20,0,
|
||||
$"Star survival is low, but {f.AdditionalMeasurements.GetValueOrDefault("Alignment tight matches"):0} tight matches verify geometry; median residual {f.AdditionalMeasurements.GetValueOrDefault("Alignment median residual pixels"):0.00} source pixels"));
|
||||
if(f.Warning!="")f.Evidence.Add(new("Metadata",0,0,0,f.Warning));
|
||||
if(!widthBad)f.Evidence.Add(new("FWHM",f.Fwhm,f.Baselines["FWHM"],0,"Stellar width is within the practical tolerance of nearby clear frames"));
|
||||
if(f.Evidence.Count==1)f.Evidence.Add(new("Reference",f.Transparency,f.Baselines["Stellar flux"],0,"Aligned sky structure, stellar flux and morphology show no substantial degradation"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue