Commit bbba3073 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add query_ref_cat

parent eca76842
Pipeline #11820 passed with stage
in 0 seconds
...@@ -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"]
......
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