From 4b686497e3345ad3c0b33d9c25d661d555f33f29 Mon Sep 17 00:00:00 2001 From: ashleyjross Date: Fri, 22 Mar 2024 16:01:01 -0400 Subject: [PATCH] Update combdata_main.py --- scripts/main/combdata_main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/main/combdata_main.py b/scripts/main/combdata_main.py index c5045329a..959be9c7f 100644 --- a/scripts/main/combdata_main.py +++ b/scripts/main/combdata_main.py @@ -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') @@ -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'