Commit b6831731 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add filter

parent 4a434b51
......@@ -1067,6 +1067,7 @@ class CsstMsFile(dict):
print(rec)
raise ae
header = rec["data"].header
header["filter"] = rec["data"]["filter"]
return CsstMsFile(
filepath=os.path.join(dfs_root, rec["data"].file_path),
ver_sim=ver_sim,
......@@ -1078,7 +1079,6 @@ class CsstMsFile(dict):
return f"CsstMsFile(filepath=\"{self.filename}\", ver_sim=\"{self.ver_sim}\", dir_out=\"{self.dir_out}\")"
# file = CsstMsFile(
# "L1/MSC/SCI/62173/10160000108/CSST_MSC_MS_SCI_20290206174352_20290206174622_10160000108_21_L1_V01.fits")
#
# file = CsstMsFile.from_l1id(id=17796, dfs_root="/share/dfs")
# file = CsstMsFile.from_l1id(id=12853, dfs_root="/share/dfs")
# CsstMsFile("CSST_MSC_MS_SCI_20280716184136_20280716184406_10160000099_14_L1_V01_IMG.fits")
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