Skip to content

Commit

Permalink
set ZWARN of NODATA cases to correspond to a z=0, GALAXY with blank S…
Browse files Browse the repository at this point in the history
…UBTYPE and zero coefficients.
  • Loading branch information
geordie666 committed Apr 19, 2024
1 parent 1b9f888 commit b2a7fd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/redrock/external/desi.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,10 @@ def rrdesi(options=None, comm=None):

ii = np.isin(zfit['targetid'], targetids[badpos | broken | unassigned | bad])
zfit['zwarn'][ii] |= ZWarningMask.NODATA
# ADM set NODATA cases to z=0, GALAXY with zero coefficients.
zfit['spectype'][ii] = 'GALAXY'
zfit['subtype'][ii] = ''
zfit['coeff'][ii] = 0.

ii = np.isin(zfit['targetid'], targetids[broken])
zfit['zwarn'][ii] |= ZWarningMask.UNPLUGGED
Expand Down

0 comments on commit b2a7fd8

Please sign in to comment.