Commit 5fbbd1f9 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

remove dm.now_dfs() & change dm.get_coord()

parent a24ec355
......@@ -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):
......
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