View Issue Details

IDProjectCategoryView StatusLast Update
0002278CCdcielGeneralpublic20-01-28 14:50
ReporterHan Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status resolvedResolutionfixed 
Target Version1.0 
Summary0002278: Improved pu_hyperbola.pas
DescriptionAttached an improved version of the curve fit unit pu_hyperbola.pas

- Changed the error calculation from RMS to mean. This results in a better fit, especially with large outliers which tend to get too much weight.
- Error calculation is modified such that large outliers can't influence the curve too much.
- Removed low seeing limit hyperbola.

Attached several images of the old RMS detection and new smart average error detection. Left is old, right is new.
Couldn't do a field test but had several focus image series to test, so I'm very confident it will work well.

Prior to this, I did several long experiments with MAD (Median absolute deviation) and standard statistics to removes outliers. Looked initially successful but noted that always one or two point where identified as an outlier due to the strange population of the errors. So it was throwing away useful points/information. A long story but this idea was abandoned.

Han

Steps To ReproduceUse attached code
TagsNo tags attached.
Attached Files
pu_hyperbola.zip (2,612 bytes)
curve fit error3.png (17,457 bytes)   
curve fit error3.png (17,457 bytes)   
curve fit error2.png (18,234 bytes)   
curve fit error2.png (18,234 bytes)   
curve fit error1.png (22,075 bytes)   
curve fit error1.png (22,075 bytes)   

Activities

Patrick Chevalley

20-01-28 14:50

administrator   ~0006298

Your example look very good, thank you for this improvement!
I will test as soon I can see some stars, but this is probably not for this week :(

I commit the change:
https://github.com/pchev/ccdciel/commit/e2b517953be7806ae202e995ee2c3b3b82496b0d

Issue History

Date Modified Username Field Change
20-01-28 13:38 Han New Issue
20-01-28 13:38 Han File Added: pu_hyperbola.zip
20-01-28 13:38 Han File Added: curve fit error3.png
20-01-28 13:38 Han File Added: curve fit error2.png
20-01-28 13:38 Han File Added: curve fit error1.png
20-01-28 14:50 Patrick Chevalley Status new => resolved
20-01-28 14:50 Patrick Chevalley Resolution open => fixed
20-01-28 14:50 Patrick Chevalley Target Version => 1.0
20-01-28 14:50 Patrick Chevalley Note Added: 0006298