Commit 059aa298 authored by Zhang Xin's avatar Zhang Xin
Browse files

update merge code

parent f4f7dff5
import numpy as np
import os
from astropy.table import Table
import sys
multiFileDir = '/nfsdata/share/CSSOSDataProductsSims/C10_refCat/1/'
if len(sys.argv) < 3:
# print('usage:\n'+sys.argv[0]+' survey_result.txt')
sys.exit(0)
multiFileDir = str(sys.argv[1])
outDir = str(sys.argv[2])
# multiFileDir = '/nfsdata/share/CSSOSDataProductsSims/C10_refCat/1/'
mergeKeys = ['parallax1',
......@@ -51,7 +58,7 @@ for fn in allFiles:
for key in mergeKeys:
mergeTable[key] = mergeTable[key] + tTab[key]
mergeTable.write(outFn,overwrite = True)
mergeTable.write(os.path.join(outDir,outFn),overwrite = True)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment