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
7d69bbf9
Commit
7d69bbf9
authored
Jan 09, 2023
by
BO ZHANG
🏀
Browse files
set default columns for RC query
parent
b3dd2837
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
7d69bbf9
...
...
@@ -627,12 +627,43 @@ class CsstMsDataManager:
except
:
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. """
try
:
cat
=
self
.
dfs_CatApi
.
catalog_query
(
catalog_name
=
"gaia3"
,
ra
=
ra
,
dec
=
dec
,
radius
=
radius
,
min_mag
=
min_mag
,
max_mag
=
max_mag
,
obstime
=
obstime
,
limit
=
limit
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
...
...
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