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
Bo Zhang
csst
Commits
361055bf
Commit
361055bf
authored
Jun 11, 2022
by
BO ZHANG
🏀
Browse files
get aux files from file path format
parent
03bc833a
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst/msc/data.py
View file @
361055bf
import
glob
# from abc import ABC
from
collections
import
OrderedDict
import
astropy.io.fits
as
fits
...
...
@@ -43,14 +44,17 @@ class CsstMscImgData(CsstData):
def
get_flat
(
self
,
fp
):
""" get flat """
fp
=
glob
.
glob
(
fp
)[
0
]
return
fits
.
getdata
(
fp
)
def
get_bias
(
self
,
fp
):
""" get bias """
fp
=
glob
.
glob
(
fp
)[
0
]
return
fits
.
getdata
(
fp
)
def
get_dark
(
self
,
fp
):
""" get dark """
fp
=
glob
.
glob
(
fp
)[
0
]
return
fits
.
getdata
(
fp
)
def
get_l1data
(
self
):
...
...
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