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_ifs_sim
Commits
aa40fa36
Commit
aa40fa36
authored
Sep 30, 2024
by
Yan Zhaojun
Browse files
debug
parent
dd1608ee
Changes
9
Show whitespace changes
Inline
Side-by-side
csst_ifs_sim/CTI/__pycache__/CTI.cpython-311.pyc
0 → 100644
View file @
aa40fa36
File added
csst_ifs_sim/CTI/__pycache__/__init__.cpython-311.pyc
0 → 100644
View file @
aa40fa36
File added
csst_ifs_sim/__pycache__/csst_ifs_sim.cpython-311.pyc
0 → 100644
View file @
aa40fa36
File added
csst_ifs_sim/csst_ifs_sim.py
View file @
aa40fa36
...
...
@@ -28,6 +28,7 @@ import astropy.coordinates as coord
import
ctypes
import
sys
sys
.
path
.
append
(
'./csst_ifs_sim'
)
conf
.
auto_max_age
=
None
"""
...
...
@@ -234,7 +235,11 @@ class CDM03bidir():
#################################################################################
###modify
#sys.path.append('../so')
try
:
from
ifs_so
import
cdm03bidir
except
:
from
.ifs_so
import
cdm03bidir
# from ifs_so.cdm03.cpython-38-x86_64-linux-gnu import cdm03bidir
# import cdm03bidir
CTIed
=
cdm03bidir
.
cdm03
(
np
.
asfortranarray
(
data
),
...
...
@@ -5168,8 +5173,20 @@ class IFSsimulator():
nphoton
=
flux2photons
(
flux_1
[
ilam
],
lam
)
# photons/cm2/s/A/arcsec2
ns
=
nphoton
*
np
.
ones
((
sizeout
,
sizeout
))
##### add code 2024.7.15 #####
sim_resolution_chart
=
True
;
if
sim_resolution_chart
:
#### sim resolution chart effect
###self.log.info('load resolution chart image' )
da0
=
sio
.
loadmat
(
'ifs_resolution_chart.mat'
)
img_chart
=
da0
[
'img'
]
ns
=
nphoton
*
img_chart
slice_image
=
ns
*
self
.
telarea
*
Width_lambda
*
10
*
exptime
# #####################3 transfer: photons/cm2/s/A/arcsec2 to photons
...
...
csst_ifs_sim/ifs_so/__pycache__/__init__.cpython-311.pyc
0 → 100644
View file @
aa40fa36
File added
csst_ifs_sim/support/__pycache__/IFSinstrumentModel.cpython-311.pyc
0 → 100644
View file @
aa40fa36
File added
csst_ifs_sim/support/__pycache__/__init__.cpython-311.pyc
0 → 100644
View file @
aa40fa36
File added
csst_ifs_sim/support/__pycache__/cosmicrays.cpython-311.pyc
0 → 100644
View file @
aa40fa36
File added
csst_ifs_sim/support/__pycache__/logger.cpython-311.pyc
0 → 100644
View file @
aa40fa36
File added
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