From 594c2a0f8340f095b89a231743ff6bd61b962e9e Mon Sep 17 00:00:00 2001 From: michealroberts Date: Tue, 22 Oct 2024 12:46:41 +0100 Subject: [PATCH] feat: add "JD-OBS" header set to fits.AddObservationEntry() in @observerly/iris feat: add "JD-OBS" header set to fits.AddObservationEntry() in @observerly/iris --- pkg/fits/fits.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/fits/fits.go b/pkg/fits/fits.go index 8c1db27..36c035c 100644 --- a/pkg/fits/fits.go +++ b/pkg/fits/fits.go @@ -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