Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
e1cdd067
Commit
e1cdd067
authored
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
added interfaces for mosaic
parent
3e4d8cc0
dev
main
wangxia-main-patch-87026
zhaobowei-main-patch-61353
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/data_manager.py
+16
-0
csst_common/data_manager.py
with
16 additions
and
0 deletions
+16
-0
csst_common/data_manager.py
+
16
-
0
View file @
e1cdd067
...
...
@@ -15,6 +15,7 @@ import glob
import
re
from
astropy.io
import
fits
from
astropy.table
import
Table
from
.params
import
CSST_PARAMS
as
CP
...
...
@@ -361,6 +362,21 @@ class CsstMsDataManager:
self
.
hardcode_history
.
append
(
dict
(
hdcd
=
fp
,
comment
=
comment
))
return
fp
def
get_sls_info
(
self
,
use_dfs
=
False
):
if
use_dfs
:
raise
NotImplementedError
()
else
:
assert
len
(
self
.
target_detectors
)
==
1
header
=
fits
.
getheader
(
self
.
l0_detector
(
self
.
target_detectors
[
0
]),
ext
=
1
)
return
header
def
get_mbi_info
(
self
,
use_dfs
=
False
):
if
use_dfs
:
raise
NotImplementedError
()
else
:
info
=
Table
.
read
(
"/nfsdata/share/csst_simulation_data/Cycle-5-SimuData/slitlessSpectroscopy/t_mbi_l1.fits"
)
return
info
@
staticmethod
def
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"mbi"
,
dir_l1
=
"."
,
exposure_id
=
100
):
"""Quick dataset generator for tests on dandelion or PMO
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets