Skip to content

Commit

Permalink
feat: add "JD-OBS" header set to fits.AddObservationEntry() in @obser…
Browse files Browse the repository at this point in the history
…verly/iris

feat: add "JD-OBS" header set to fits.AddObservationEntry() in @observerly/iris
  • Loading branch information
michealroberts committed Oct 22, 2024
1 parent 4968173 commit 594c2a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/fits/fits.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ func (f *FITSImage) AddObservationEntry(observation *FITSObservation) *FITSImage
Comment: "Date of observation",
}

f.Header.Floats["JD-OBS"] = struct {
Value float32
Comment string
}{
Value: observation.MJDObs + 2400000.5,
Comment: "Julian Date of the observation",
}

f.Header.Floats["MJD-OBS"] = struct {
Value float32
Comment string
Expand Down

0 comments on commit 594c2a0

Please sign in to comment.