geminiplanetimager / gpi_pipeline

Gemini Planet Imager Data Reduction Pipeline
Other
8 stars 6 forks source link

Interpolating option for subtract darks #27

Open dsavransky opened 8 years ago

dsavransky commented 8 years ago

A step beyond using a rescaled dark file would be using several of them. Specifically it was suggested that we could take the available darks that are just below and above the science frame in exposure time, scale them, then interpolate between them using e.g. linear weights based on the relative differences in exposure time. You could carry this one step more and take the available darks taken closest in date before and after the science observations, and similarly linearly interpolate between them. The end result would be a bilinear interpolation between 4 reference dark frames.

Implement and see if this improves subtraction or tracking of hot pixels in any measurable way?

dsavransky commented 8 years ago

Recovering rm journals for issue:

mperrin: Partially implemented in commit 2717. This takes the best available dark from before the science exposure and the best available dark from after it, and linearly interpolates between them based on JD (while still rescaling based on exposure times if needed). This is only an interpolation between 2 frames rather than 4 as I describe above however.