svalenti / pessto

pessto pipeline
MIT License
9 stars 6 forks source link

`MJD-END` keyword value incorrect for SOFI Spectra #19

Closed thespacedoctor closed 9 years ago

thespacedoctor commented 9 years ago

MJD-END needs to account for overheads (time between dits). So, using the keyword values (mjd_obs and exptime) for the final raw frame taken in the set:

mjd_end = mjd_obs + ndit * (exptime + 1.8) / (60. * 60. * 24.)

1.8s is the time between exposures

svalenti commented 9 years ago

I think I fixed it, It was a parenthesis in the wrong place mjdend=float(readkey3(hdr,'MJD-OBS')) + (float(readkey3(hdr,'ndit'))_(float(readkey3(hdr,'dit'))+1.8))/(60._60.*24.)