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
Bo Zhang
csst
Commits
75bf22bf
Commit
75bf22bf
authored
3 years ago
by
littlebubbles
Browse files
Options
Download
Plain Diff
Merge branch 'master' of
https://csst-tb.bao.ac.cn/code/zhangbo/csst
parents
ac59766f
11d00f8d
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst/msc/data_manager.py
+16
-9
csst/msc/data_manager.py
with
16 additions
and
9 deletions
+16
-9
csst/msc/data_manager.py
+
16
-
9
View file @
75bf22bf
...
...
@@ -164,22 +164,29 @@ class CsstMscDataManager:
self
.
_exp_start
,
self
.
_exp_stop
,
self
.
_exp_id
,
ccd_id
,
suffix
,
ext
)
return
os
.
path
.
join
(
self
.
dir_l1
,
fn
)
def
pc_combined_
imag
e
(
self
,
suffix
=
"img"
,
ext
=
"fits"
):
def
pc_combined_
fil
e
(
self
,
suffix
=
"img"
,
ext
=
"fits"
):
""" combined images
Parameters
----------
suffix:
{"img", "wht", "flg", "cat"}
{"img", "wht", "flg", "cat"
, "head"
}
ext:
{"fits", }
{"fits",
"head", "ahead"
}
Returns
-------
combined image path
"""
fn
=
"combined_"
+
"{}.{}"
.
format
(
suffix
,
ext
)
if
self
.
ver_sim
==
"C3"
:
fn
=
"{}_{}_{}_{}_{}.{}"
.
format
(
self
.
_instrument
,
self
.
_survey
,
self
.
_exp_start
,
self
.
_exp_id
,
suffix
,
ext
)
elif
self
.
ver_sim
==
"C5.1"
:
fn
=
"{}_{}_{}_SCI_{}_{}_{}_{}.{}"
.
format
(
self
.
_telescope
,
self
.
_instrument
,
self
.
_survey
,
self
.
_exp_start
,
self
.
_exp_stop
,
self
.
_exp_id
,
suffix
,
ext
)
return
os
.
path
.
join
(
self
.
dir_l1
,
fn
)
@
property
...
...
@@ -187,16 +194,16 @@ class CsstMscDataManager:
""" reference catalog """
return
os
.
path
.
join
(
self
.
dir_l1
,
"ref.cat"
)
@
property
def
pc_radecoff
(
self
):
""" plot coordinate diff between obs and ref """
return
os
.
path
.
join
(
self
.
dir_l1
,
"radec_off.png"
)
@
property
def
pc_check_fits
(
self
):
""" check fits """
return
os
.
path
.
join
(
self
.
dir_l1
,
"check.fits"
)
@
property
def
pc_combined_head
(
self
):
""" combined head """
return
os
.
path
.
join
(
self
.
dir_l1
,
"combined_cat.head"
)
@
property
def
pc_combined_head_fits
(
self
):
""" combined head (converted to) fits """
...
...
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