Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zhang Xin
star_SED
Commits
059aa298
Commit
059aa298
authored
3 months ago
by
Zhang Xin
Browse files
Options
Download
Email Patches
Plain Diff
update merge code
parent
f4f7dff5
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mergeFiles.py
+9
-2
mergeFiles.py
with
9 additions
and
2 deletions
+9
-2
mergeFiles.py
+
9
-
2
View file @
059aa298
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
)
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets