Add site information to FITS header

add_fits_site_info
Cees Bassa 2022-07-11 11:55:35 +02:00
parent 41ff616c27
commit 5497433078
1 changed files with 3 additions and 0 deletions

View File

@ -384,6 +384,9 @@ def compress(image_queue, z1, t1, z2, t2, nx, ny, nz, tend, path, device_id, cfg
hdr['RADECSYS'] = "ICRS"
hdr['COSPAR'] = cfg.getint('Common', 'observer_cospar')
hdr['OBSERVER'] = cfg.get('Common', 'observer_name')
hdr['SITELONG'] = cfg.getfloat('Common', 'observer_lon')
hdr['SITELAT'] = cfg.getfloat('Common', 'observer_lat')
hdr['ELEVATIO'] = cfg.getfloat('Common', 'observer_height')
if cfg.getboolean('Astrometry', 'tracking_mount'):
hdr['TRACKED'] = 1
else: