Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
bbba3073
Commit
bbba3073
authored
Jan 12, 2026
by
BO ZHANG
🏀
Browse files
add query_ref_cat
parent
eca76842
Pipeline
#11820
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_common/pipeline.py
View file @
bbba3073
...
@@ -405,7 +405,10 @@ class Pipeline:
...
@@ -405,7 +405,10 @@ class Pipeline:
return
task_ref_cat
return
task_ref_cat
else
:
else
:
# DFS recommended catalog
# DFS recommended catalog
if
self
.
docker_image
==
"csst-msc-l1-mbi"
:
if
self
.
docker_image
in
[
"csst-msc-l1-mbi"
,
"csst-msc-l1-ast-astrometry"
,
]:
return
"trilegal_093"
return
"trilegal_093"
else
:
else
:
return
None
return
None
...
@@ -490,13 +493,17 @@ class Pipeline:
...
@@ -490,13 +493,17 @@ class Pipeline:
return
meta
return
meta
def
query_ref_cat
(
def
query_ref_cat
(
self
,
file_path
,
catalog_name
:
str
=
"trilegal_093"
self
,
file_path
,
catalog_name
:
Optional
[
str
]
=
None
,
)
->
None
|
str
:
)
->
None
|
str
:
"""
"""
References
References
----------
----------
https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/sec_dm_main_source_catalogue/ssec_dm_gaia_source.html
https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/sec_dm_main_source_catalogue/ssec_dm_gaia_source.html
"""
"""
if
not
catalog_name
:
catalog_name
=
self
.
ref_cat
image
=
File
(
file_path
)
image
=
File
(
file_path
)
header
=
fits
.
getheader
(
image
.
file_path
)
header
=
fits
.
getheader
(
image
.
file_path
)
pointing_ra
=
header
[
"RA_OBJ"
]
pointing_ra
=
header
[
"RA_OBJ"
]
...
...
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