Skip to content

Commit

Permalink
Update combdata_main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyjross committed Mar 22, 2024
1 parent 5a8a741 commit 4b68649
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/main/combdata_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
parser.add_argument("--dospec",help="whether or not to combine spec data",default='y')
parser.add_argument("--dotarspec",help="whether or not to combine spec and tar data per type, for non-daily data",default='y')
parser.add_argument("--redospec",help="whether or not to combine spec data from beginning",default='n')
parser.add_argument("--redo_zmtl",help="whether or not to remake zmtl file",default='n')
parser.add_argument("--counts_only",help="skip to just counting overlaps",default='n')
parser.add_argument("--combpix",help="if n, just skip to next stage",default='y')
parser.add_argument("--get_petalsky",help="if y, combine info across tiles to get dispersion in sky fibers",default='n')
Expand Down Expand Up @@ -568,7 +569,8 @@
'TSNR2_ELG_R','TSNR2_LYA_R','TSNR2_BGS_R','TSNR2_QSO_R','TSNR2_LRG_R','TSNR2_ELG_Z','TSNR2_LYA_Z','TSNR2_BGS_Z',\
'TSNR2_QSO_Z','TSNR2_LRG_Z','TSNR2_ELG','TSNR2_LYA','TSNR2_BGS','TSNR2_QSO','TSNR2_LRG','PRIORITY','DESI_TARGET','BGS_TARGET','TARGET_RA','TARGET_DEC','LASTNIGHT'])
specfo = ldirspec+'datcomb_'+prog+'_zmtl_zdone.fits'
ct.combtile_spec(tiles4comb,specfo,md='zmtl',specver=specrel)
if args.redo_zmtl == 'y':
ct.combtile_spec(tiles4comb,specfo,md='zmtl',specver=specrel)
fzmtl = fitsio.read(specfo)
specf = join(specf,fzmtl,keys=['TARGETID','TILEID'])
outfs = ldirspec+'datcomb_'+prog+'_spec_zdone.fits'
Expand Down

0 comments on commit 4b68649

Please sign in to comment.