From c606e365b134ada04677b8e3346ba77fee8a5538 Mon Sep 17 00:00:00 2001 From: Stephen Bailey Date: Wed, 24 Jul 2024 15:41:33 -0700 Subject: [PATCH] also write header keywords to REDSHIFTS HDU --- py/redrock/external/desi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/redrock/external/desi.py b/py/redrock/external/desi.py index c43bc7d..6b0df9d 100644 --- a/py/redrock/external/desi.py +++ b/py/redrock/external/desi.py @@ -107,8 +107,10 @@ def write_zbest(outfile, zbest, fibermap, exp_fibermap, tsnr2, Modifies input tables.meta['EXTNAME'] """ + # header keywords for both PRIMARY and REDSHIFTS HDU header = _get_header(templates, archetypes, spec_header) + zbest.meta.update(header) zbest.meta['EXTNAME'] = 'REDSHIFTS' fibermap.meta['EXTNAME'] = 'FIBERMAP' exp_fibermap.meta['EXTNAME'] = 'EXP_FIBERMAP'