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
5fbbd1f9
Commit
5fbbd1f9
authored
Mar 20, 2023
by
BO ZHANG
🏀
Browse files
remove dm.now_dfs() & change dm.get_coord()
parent
a24ec355
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
5fbbd1f9
...
...
@@ -303,10 +303,6 @@ class CsstMsDataManager:
def
now
():
return
now
()
@
staticmethod
def
now_dfs
():
return
now_dfs
()
# DFS APIs
@
property
def
dfs_L0DataApi
(
self
):
...
...
@@ -737,8 +733,12 @@ class CsstMsDataManager:
def
get_coord
(
self
):
""" Get pointing coordinate. """
header
=
fits
.
getheader
(
self
.
l0_detector
(
detector
=
self
.
target_detectors
[
0
]))
if
self
.
ver_sim
==
"C5.2"
:
pointing_ra
=
header
[
"RA_OBJ"
]
pointing_dec
=
header
[
"DEC_OBJ"
]
else
:
pointing_ra
=
header
[
"OBJ_RA"
]
pointing_dec
=
header
[
"OBJ_DEC"
]
return
pointing_ra
,
pointing_dec
def
dfs_rc_auto
(
self
):
...
...
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