Skip to content

Commit

Permalink
consider only ZERO and DARK before moving forward in the selection
Browse files Browse the repository at this point in the history
  • Loading branch information
julienguy committed Aug 16, 2024
1 parent 6f543bb commit 4957b39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/desi_compute_dark_nonlinear
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ if 'CAMWORD' in colnames and 'BADCAMWORD' in colnames and 'BADAMPS' in colnames:
log.critical('No exposures! exiting...')
sys.exit(1)

#- keep only ZERO or DARK
keep = (speclog['OBSTYPE']=='ZERO')|(speclog['OBSTYPE']=='DARK')| (speclog['OBSTYPE'] == 'zero')| (speclog['OBSTYPE'] == 'dark')
speclog = speclog[keep]
if len(speclog) == 0:
log.critical('No exposures! exiting...')
sys.exit(1)

#- group EXPTIMEs by integer
speclog['EXPTIME_INT'] = speclog['EXPTIME'].astype(int)

Expand Down

0 comments on commit 4957b39

Please sign in to comment.