Keck-DataReductionPipelines / KPF-Pipeline

KPF-Pipeline
https://kpf-pipeline.readthedocs.io/en/latest/
Other
11 stars 2 forks source link

Understand the Exposure Meter timing for mid-point determination #346

Closed awhoward closed 1 year ago

awhoward commented 1 year ago

The point of this Issue is to determine if we are accurately reporting the start and stop times of Exposure Meter (EM) exposures, which are used to determine the flux-weighted midpoint as a function of wavelength.

During a single exposure with the main spectrometer, the EM makes a series of exposures of its focal plane that are extracted into a time series of coarse spectra in the appropriate KPF L0 file. Each EM exposure (and the resulting extracted spectrum) has an associated start and stop time. There is a ~0.8 sec gap between the end of one exposure and the beginning of the next. Of this 0.8 sec, about 0.25 is used to read a windowed portion of the CCD, which does not have a shutter and is not cleared between exposures.

We have been assuming the flux recorded in an EM exposure arrives between the start and stop times. This is not exactly true because light continues to fall on the Exposure Meter CCD during the 0.8 sec gap. Some of charge is smeared out during the 0.25 sec read time and the rest probably accumulates prior to the official start of the next exposure. The goal of this Issue is to find a better determination of the start and stop times if the reported values are no accurrate. This may involve doing experiments with the exposure meter observing a constant source (perhaps the flat lamp with an ND filter for attenuation) at a range of exposure times. Recorded flux should be proportional to the exposure time.

The above text captures some Slack discussion involving Steve Gibson, Andrew Howard, and Will Deich. Below is a message that Will posted with many important details.

I'm tagging @lgbouma, @bjfultn, @howardisaacson, and @shalverson as interested parties.


Expmeter timing: the kpf_expmeter dispatcher runs in a loop in which it sleeps for 4ms, then polls the camera state. It takes about 4ms for the camera to return state, so the actual loop time is roughly 8ms. An SBIG exposure works like so:

bjfultn commented 1 year ago

@jonzink @bpholden Could you please update this issue with the knowledge you have gained from your various tests on this topic?

bpholden commented 1 year ago

There is a Confluence page that summarizes the tests here:

https://exoplanets.atlassian.net/wiki/spaces/shrek/pages/2695004325/Exposure+Meter+Issues+Calibration+Data+Processing+and+Operational#Exposure-Meter-Photon-Arrival-Times

I am guessing that the difference between the ELAPSED and the EXPOSURE values comes from an erase. The detector is clearly erased before each exposure (the above link gives evidence of that.) We can ask SBIG for what happens during an exposure.

On Tue, Feb 7, 2023 at 6:44 PM BJ Fulton @.***> wrote:

@jonzink https://github.com/jonzink @bpholden https://github.com/bpholden Could you please update this issue with the knowledge you have gained from your various tests on this topic?

— Reply to this email directly, view it on GitHub https://github.com/California-Planet-Search/KPF-Pipeline/issues/346#issuecomment-1421656436, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJJHGS5KDUYSXG2LRBEDNLWWLM4XANCNFSM6AAAAAARXFIMVE . You are receiving this because you were mentioned.Message ID: @.***>