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:
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.)
MJD-END needs to account for overheads (time between dits). So, using the keyword values (
mjd_obs
andexptime
) for the final raw frame taken in the set:1.8
s is the time between exposures