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-sims
csst_mci_sim
Commits
0362149a
Commit
0362149a
authored
Apr 13, 2024
by
Yan Zhaojun
Browse files
test
parent
2d2f26d7
Pipeline
#4019
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
0362149a
...
...
@@ -1493,36 +1493,11 @@ class MCIsimulator():
self
.
_createEmpty
()
now
=
datetime
.
utcnow
()
data_time
=
now
.
strftime
(
"%Y-%m-%d-%H-%M-%S"
)
print
(
'simnumber'
,
simnumber
)
self
.
log
=
lg
.
setUpLogger
(
self
.
result_path
+
'/log_Data/MCIsim_'
+
source
+
'_'
+
data_time
+
'_Num_'
+
str
(
simnumber
)
+
'.log'
)
#print('logger.handlers=', self.log.handlers)
self
.
log
.
info
(
'-------STARTING A NEW SIMULATION------------'
)
self
.
log
.
info
(
'The exposure order is %i '
%
simnumber
)
#load instrument model, these values are also stored in the FITS header
self
.
information
[
'G_filters'
]
=
[
"F275W"
,
"F280N"
,
"NUV"
,
"WU"
,
"CBU"
,
"F343N"
,
"u"
,
"F373N"
,
"F395N"
,
"F336W"
]
self
.
information
[
'R_filters'
]
=
[
"F487N"
,
"F502N"
,
"CBV"
,
"r"
,
"F656N"
,
"F658N"
,
"F467M"
,
"F555W"
,
"F606W"
,
"F673N"
]
self
.
information
[
'I_filters'
]
=
[
"z"
,
"y"
,
"F815N"
,
"CBI"
,
"F925N"
,
"F960M"
,
"F968N"
,
"F845M"
,
"F850LP"
,
"F814W"
]
#### load telescope efficiency data
print
(
self
.
information
[
'dir_path'
])
self
.
tel_eff
=
np
.
load
(
self
.
information
[
'dir_path'
]
+
'MCI_inputData/tel_eff/tel_eff.npy'
,
allow_pickle
=
True
).
item
()
#### load MCI filter data
self
.
filterP
=
np
.
load
(
self
.
information
[
'dir_path'
]
+
'MCI_inputData/MCI_filters/mci_filterPWTC.npy'
,
allow_pickle
=
True
).
item
()
###########################################################################
###########################################################################
now
=
datetime
.
utcnow
()
#data_time=now.strftime("%Y-%m-%d-%H-%M-%S")
result_day
=
now
.
strftime
(
"%Y-%m-%d"
)
...
...
@@ -1556,6 +1531,37 @@ class MCIsimulator():
os
.
mkdir
(
self
.
result_path
+
'/ori_Sky'
)
os
.
mkdir
(
self
.
result_path
+
'/sky_Data'
)
os
.
mkdir
(
self
.
result_path
+
'/PSF_Data'
)
now
=
datetime
.
utcnow
()
data_time
=
now
.
strftime
(
"%Y-%m-%d-%H-%M-%S"
)
print
(
'simnumber'
,
simnumber
)
self
.
log
=
lg
.
setUpLogger
(
self
.
result_path
+
'/log_Data/MCIsim_'
+
source
+
'_'
+
data_time
+
'_Num_'
+
str
(
simnumber
)
+
'.log'
)
#print('logger.handlers=', self.log.handlers)
self
.
log
.
info
(
'-------STARTING A NEW SIMULATION------------'
)
self
.
log
.
info
(
'The exposure order is %i '
%
simnumber
)
#load instrument model, these values are also stored in the FITS header
self
.
information
[
'G_filters'
]
=
[
"F275W"
,
"F280N"
,
"NUV"
,
"WU"
,
"CBU"
,
"F343N"
,
"u"
,
"F373N"
,
"F395N"
,
"F336W"
]
self
.
information
[
'R_filters'
]
=
[
"F487N"
,
"F502N"
,
"CBV"
,
"r"
,
"F656N"
,
"F658N"
,
"F467M"
,
"F555W"
,
"F606W"
,
"F673N"
]
self
.
information
[
'I_filters'
]
=
[
"z"
,
"y"
,
"F815N"
,
"CBI"
,
"F925N"
,
"F960M"
,
"F968N"
,
"F845M"
,
"F850LP"
,
"F814W"
]
#### load telescope efficiency data
print
(
self
.
information
[
'dir_path'
])
self
.
tel_eff
=
np
.
load
(
self
.
information
[
'dir_path'
]
+
'MCI_inputData/tel_eff/tel_eff.npy'
,
allow_pickle
=
True
).
item
()
#### load MCI filter data
self
.
filterP
=
np
.
load
(
self
.
information
[
'dir_path'
]
+
'MCI_inputData/MCI_filters/mci_filterPWTC.npy'
,
allow_pickle
=
True
).
item
()
...
...
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