-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugFix for existing functionality of the pipelineFix for existing functionality of the pipelinelevel 1Affects level1 productsAffects level1 products
Milestone
Description
The calculation of the minimum threshold for the median of flats is currently computed via line 337 of comp_make_flat.pro:
threshold = (norm - min_flat_median_offset) * expose / 250.0 / transmission_correction
where norm is the transmission computed for the day with comp_transmission and min_flat_median_offset is an epoch value that is currently always 20.0.
But the median of the flat image has been normalized already, so norm - min_flat_median_offset shouldn't be a function of date. So the threshold should be computed:
threshold = min_flat_median * expose / 250.0 / transmission_correction
where min_flat_median_offset has a constant value. We need to find this value through analysis of the flat medians.
Note, by 20110622, there are not as many flats currently marked as bad, and the bad ones are just barely bad, from the logs from 20110622:
38.60 (flat median) < 38.86 (minimum theshold)
38.82 (flat median) < 38.86 (minimum theshold)
38.85 (flat median) < 38.86 (minimum theshold)
Tasks
- update equation for calculation of minimum threshold for flats —
min_flat_medianshould 70.0 before 2016 and 60.0 after - analyze statistical properties of the normalized (corrected by
comp_transmission) median flat values — they should be roughly constant over the mission - determine new
min_flat_median_offsetvalue (min_flat_medianof 70 before 2016, 60 after 2016) - create all flats for the mission with both old and new criteria, and warn when criteria disagree (log filename, median value of the flat, median of flat before converting to millionths, and both criteria thresholds, and maybe
median(flat - dark)if possible)
Metadata
Metadata
Assignees
Labels
bugFix for existing functionality of the pipelineFix for existing functionality of the pipelinelevel 1Affects level1 productsAffects level1 products