Skip to content

Commit ce08792

Browse files
Merge pull request #230 from observerly/feature/fits/AddObservationEntry
feat: add "JD-OBS" header set to fits.AddObservationEntry() in @observerly/iris
2 parents 4968173 + 594c2a0 commit ce08792

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/fits/fits.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ func (f *FITSImage) AddObservationEntry(observation *FITSObservation) *FITSImage
167167
Comment: "Date of observation",
168168
}
169169

170+
f.Header.Floats["JD-OBS"] = struct {
171+
Value float32
172+
Comment string
173+
}{
174+
Value: observation.MJDObs + 2400000.5,
175+
Comment: "Julian Date of the observation",
176+
}
177+
170178
f.Header.Floats["MJD-OBS"] = struct {
171179
Value float32
172180
Comment string

0 commit comments

Comments
 (0)