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

log out catalog query code and message

parent 2e35e622
......@@ -740,23 +740,22 @@ class CsstMsDataManager:
https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/
sec_dm_main_source_catalogue/ssec_dm_gaia_source.html
"""
try:
cat = self.dfs_CatApi.catalog_query(
catalog_name="gaia3",
ra=ra,
dec=dec,
columns=columns,
radius=radius,
min_mag=min_mag,
max_mag=max_mag,
obstime=obstime,
limit=limit
)
tbl = self.dfs_CatApi.to_table(cat)
return tbl
except:
print("Error occurred during the query!")
return None
cat = self.dfs_CatApi.catalog_query(
catalog_name="gaia3",
ra=ra,
dec=dec,
columns=columns,
radius=radius,
min_mag=min_mag,
max_mag=max_mag,
obstime=obstime,
limit=limit
)
self.logger_ppl.info(f"Results from DFS CATAPI: code = {cat['code']}, message = {cat['message']}")
if cat["code"] == 0:
return self.dfs_CatApi.to_table(cat)
else:
raise ValueError("Bad results!")
def dfs_l1_push(self):
""" Push MBI/SLS L1 data to DFS. """
......
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