Skip to content

Commit

Permalink
also write header keywords to REDSHIFTS HDU
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and allyson committed Jul 25, 2024
1 parent cc41ef4 commit c606e36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/redrock/external/desi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c606e36

Please sign in to comment.