Commit 7d69bbf9 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

set default columns for RC query

parent b3dd2837
...@@ -627,12 +627,43 @@ class CsstMsDataManager: ...@@ -627,12 +627,43 @@ class CsstMsDataManager:
except: except:
return False return False
def dfs_rc_query(self, ra=180, dec=0, radius=2, min_mag=0, max_mag=30, obstime=-1, limit=-1): def dfs_rc_query(
self,
ra=180,
dec=0,
radius=2,
columns=(
'ref_epoch',
'ra',
'ra_error',
'dec',
'dec_error',
'parallax',
'parallax_error',
'pmra',
'pmra_error',
'pmdec',
'pmdec_error',
'phot_g_mean_mag',
'source_id'
),
min_mag=0,
max_mag=30,
obstime=-1,
limit=-1
):
""" Query Reference Catalog (RC) from DFS. """ """ Query Reference Catalog (RC) from DFS. """
try: try:
cat = self.dfs_CatApi.catalog_query( cat = self.dfs_CatApi.catalog_query(
catalog_name="gaia3", ra=ra, dec=dec, radius=radius, min_mag=min_mag, max_mag=max_mag, catalog_name="gaia3",
obstime=obstime, limit=limit 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) tbl = self.dfs_CatApi.to_table(cat)
return tbl return tbl
......
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