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
762f84f7
Commit
762f84f7
authored
Mar 02, 2022
by
BO ZHANG
🏀
Browse files
new directory for examples
parent
297fe499
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/example_csstmscdata.py
0 → 100644
View file @
762f84f7
fp
=
"/Users/cham/projects/csst/examples/MSC_MS_210527171000_100000279_16_raw.fits"
fp
=
"/Users/cham/projects/csst/examples/bias/MSC_CLB_210525120000_100000000_06_raw.fits"
fp
=
"/Users/cham/projects/csst/examples/lam/MSC_CLB_210525120000_100000000_06_raw.fits"
import
os
os
.
chdir
(
"/Users/cham/projects/csst/test/"
)
fp
=
"MSC_MS_210527171000_100000279_16_raw.fits"
from
csst.msc
import
CsstMscImgData
data
=
CsstMscImgData
.
read
(
fp
)
print
(
"data: "
,
data
)
print
(
"instrument: "
,
data
.
get_l0keyword
(
"pri"
,
"INSTRUME"
))
print
(
"object: "
,
data
.
get_l0keyword
(
"pri"
,
"OBJECT"
))
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