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
67d4743f
Commit
67d4743f
authored
Apr 12, 2024
by
Yan Zhaojun
Browse files
update ifs_sim
parent
200976fe
Pipeline
#3984
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_ifs_sim/__pycache__/csst_ifs_sim.cpython-38.pyc
0 → 100644
View file @
67d4743f
File added
csst_ifs_sim/csst_ifs_sim.py
View file @
67d4743f
...
...
@@ -13,10 +13,21 @@ import os
from
scipy.interpolate
import
interp1d
import
astropy.coordinates
as
coord
import
ctypes
from
csst_ifs_sim.support
import
IFSinstrumentModel
from
csst_ifs_sim.support
import
cosmicrays
from
csst_ifs_sim.support
import
logger
as
lg
from
csst_ifs_sim.CTI
import
CTI
# from csst_ifs_sim.support import IFSinstrumentModel
# from csst_ifs_sim.support import cosmicrays
# from csst_ifs_sim.support import logger as lg
# from csst_ifs_sim.CTI import CTI
sys
.
path
.
append
(
'../'
)
from
CTI
import
CTI
from
support
import
logger
as
lg
from
support
import
cosmicrays
from
support
import
IFSinstrumentModel
# from optparse import OptionParser
import
configparser
as
ConfigParser
import
cmath
...
...
@@ -355,6 +366,7 @@ class StrayLight(object):
DESCRIPTION.
"""
filterIndex
=
{
'nuv'
:
0
,
'u'
:
1
,
'g'
:
2
,
'r'
:
3
,
'i'
:
4
,
'z'
:
5
,
'y'
:
6
}
sat
=
(
ctypes
.
c_double
*
3
)()
sat
[:]
=
self
.
sat
...
...
@@ -392,6 +404,8 @@ class StrayLight(object):
DESCRIPTION.
"""
filterIndex
=
{
'nuv'
:
0
,
'u'
:
1
,
'g'
:
2
,
'r'
:
3
,
'i'
:
4
,
'z'
:
5
,
'y'
:
6
}
sat
=
(
ctypes
.
c_double
*
3
)()
sat
[:]
=
self
.
sat
ob
=
(
ctypes
.
c_double
*
3
)()
...
...
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