@@ -44,6 +44,10 @@ type FITSObservation struct {
4444 Equinox float32 `json:"equinox"` // Equinox of observation e.g., J2000
4545 RA float32 `json:"ra"` // Right Ascension of observation
4646 Dec float32 `json:"dec"` // Declination of observation
47+ Altitude float32 `json:"altitude"` // Altitude of the observation
48+ Azimuth float32 `json:"azimuth"` // Azimuth of the observation
49+ Airmass float32 `json:"airmass"` // Airmass of the observation
50+ Refraction float32 `json:"refraction"` // Refraction of the observation
4751 Object string `json:"object"` // The name for the object observed
4852 Telescope string `json:"telescope"` // The telescope used to acquire the data
4953 Instrument string `json:"instrument"` // The instrument used to acquire the data
@@ -191,6 +195,15 @@ func (f *FITSImage) AddObservationEntry(observation *FITSObservation) *FITSImage
191195 Comment : "Equinox of observation e.g., Julian 2000.0" ,
192196 }
193197
198+ // Necessary for Twirl API Plate Solving
199+ f .Header .Strings ["RADESYS" ] = struct {
200+ Value string
201+ Comment string
202+ }{
203+ Value : "ICRS" ,
204+ Comment : "International Celestial Reference System" ,
205+ }
206+
194207 // Necessary for Twirl API Plate Solving
195208 f .Header .Floats ["RA" ] = struct {
196209 Value float32
@@ -200,6 +213,22 @@ func (f *FITSImage) AddObservationEntry(observation *FITSObservation) *FITSImage
200213 Comment : "Right Ascension (in degrees) of the observation" ,
201214 }
202215
216+ f .Header .Floats ["ALT" ] = struct {
217+ Value float32
218+ Comment string
219+ }{
220+ Value : observation .Altitude ,
221+ Comment : "Altitude (in degrees) of the observation" ,
222+ }
223+
224+ f .Header .Floats ["AZ" ] = struct {
225+ Value float32
226+ Comment string
227+ }{
228+ Value : observation .Azimuth ,
229+ Comment : "Azimuth (in degrees) of the observation" ,
230+ }
231+
203232 // Necessary for Twirl API Plate Solving
204233 f .Header .Floats ["DEC" ] = struct {
205234 Value float32
@@ -209,6 +238,22 @@ func (f *FITSImage) AddObservationEntry(observation *FITSObservation) *FITSImage
209238 Comment : "Declination (in degrees) of the observation" ,
210239 }
211240
241+ f .Header .Floats ["AIRMASS" ] = struct {
242+ Value float32
243+ Comment string
244+ }{
245+ Value : observation .Airmass ,
246+ Comment : "Airmass of the observation (sec z)" ,
247+ }
248+
249+ f .Header .Floats ["REFRACT" ] = struct {
250+ Value float32
251+ Comment string
252+ }{
253+ Value : observation .Refraction ,
254+ Comment : "Refraction correction (in degrees) of the observation" ,
255+ }
256+
212257 f .Header .Strings ["OBJECT" ] = struct {
213258 Value string
214259 Comment string
0 commit comments