Nat1405 / Nifty4Gemini

A Gemini Data Reduction Pipeline Framework
MIT License
0 stars 0 forks source link

Automatic Sky Frame Identification #11

Open Nat1405 opened 4 years ago

Nat1405 commented 4 years ago

nifsSort.rewriteSciImageList() is currently choosing the first image in the full skyFrameList as the "skyFrame" and calculating zero point offsets from that. However, this doesn't make sense; what if the first image in the list was actually a sky frame and we write the lists backwards (with the science frames in the skyFrameList and the sky frames in the scienceFrameList)?

I think some surrogate for opening up the files and visually checking the counts is needed. Maybe we can calculate the average counts of all frames in the list, partition the list in two, and assign them that way...