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
95f189eb
Commit
95f189eb
authored
Oct 28, 2022
by
BO ZHANG
🏀
Browse files
changed max_mag to 30
parent
9c6afc09
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
95f189eb
...
...
@@ -114,7 +114,7 @@ class CsstMsDataManager:
ver_sim
:
str
=
"C5.2"
,
datatype
:
str
=
"mbi"
,
available_detectors
:
Union
[
None
,
list
]
=
None
,
target_detectors
:
Union
[
None
,
list
]
=
None
,
target_detectors
:
Union
[
None
,
list
,
int
]
=
None
,
dir_l0
:
str
=
"."
,
dir_l1
:
str
=
"."
,
path_aux
:
str
=
""
,
# bias dark flat
...
...
@@ -455,7 +455,7 @@ class CsstMsDataManager:
ver_sim
=
ver_sim
,
datatype
=
datatype
,
dir_l0
=
dir_l0
,
dir_l1
=
dir_l1
,
path_aux
=
path_aux
,
dfs_mode
=
dfs_mode
,
dfs_node
=
dfs_node
)
def
query_rc
(
self
,
ra
=
180
,
dec
=
0
,
radius
=
2
,
min_mag
=
0
,
max_mag
=
2
0
,
obstime
=-
1
,
limit
=-
1
):
def
query_rc
(
self
,
ra
=
180
,
dec
=
0
,
radius
=
2
,
min_mag
=
0
,
max_mag
=
3
0
,
obstime
=-
1
,
limit
=-
1
):
""" Query Reference Catalog (RC) from DFS """
try
:
tbl
=
gaia_query_from_dfs
(
...
...
csst_common/dfs.py
View file @
95f189eb
...
...
@@ -4,7 +4,7 @@ from csst_dfs_api.msc.level1 import Level1DataApi
# DFS query
def
gaia_query_from_dfs
(
ra
=
180
,
dec
=
0
,
radius
=
2
,
min_mag
=
0
,
max_mag
=
2
0
,
obstime
=-
1
,
limit
=-
1
):
def
gaia_query_from_dfs
(
ra
=
180
,
dec
=
0
,
radius
=
2
,
min_mag
=
0
,
max_mag
=
3
0
,
obstime
=-
1
,
limit
=-
1
):
""" query gaia edr3 catalog from dfs """
api
=
CatalogApi
()
cat
=
api
.
catalog_query
(
...
...
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