Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing EventList with Observation.write set MJDREFI and MJDREFF to 0 #5256

Closed
MRegeard opened this issue May 7, 2024 · 0 comments · Fixed by #5257
Closed

Writing EventList with Observation.write set MJDREFI and MJDREFF to 0 #5256

MRegeard opened this issue May 7, 2024 · 0 comments · Fixed by #5257
Assignees
Labels
Milestone

Comments

@MRegeard
Copy link
Member

MRegeard commented May 7, 2024

When one write an EventList with Observation.write, MJDREFI and MJDREFF are set to 0 in the header of the EventList.
This obviously jeopardize the time of the written EventList.

This behaviour originates from updating the header of the EventList with pointing information without passing the reference time:

events_hdu.header.update(self.pointing.to_fits_header())

Therefore,
DEFAULT_EPOCH = Time(0, format="mjd", scale="tt")
is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants