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
e1cdd067
Commit
e1cdd067
authored
Oct 27, 2022
by
BO ZHANG
🏀
Browse files
added interfaces for mosaic
parent
3e4d8cc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
e1cdd067
...
@@ -15,6 +15,7 @@ import glob
...
@@ -15,6 +15,7 @@ import glob
import
re
import
re
from
astropy.io
import
fits
from
astropy.io
import
fits
from
astropy.table
import
Table
from
.params
import
CSST_PARAMS
as
CP
from
.params
import
CSST_PARAMS
as
CP
...
@@ -361,6 +362,21 @@ class CsstMsDataManager:
...
@@ -361,6 +362,21 @@ class CsstMsDataManager:
self
.
hardcode_history
.
append
(
dict
(
hdcd
=
fp
,
comment
=
comment
))
self
.
hardcode_history
.
append
(
dict
(
hdcd
=
fp
,
comment
=
comment
))
return
fp
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
@
staticmethod
def
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"mbi"
,
dir_l1
=
"."
,
exposure_id
=
100
):
def
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"mbi"
,
dir_l1
=
"."
,
exposure_id
=
100
):
"""Quick dataset generator for tests on dandelion or PMO
"""Quick dataset generator for tests on dandelion or PMO
...
...
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